From 7ec2e407206036a993aadbcd39b13a2d86b7a288 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 20 Jan 2011 13:26:59 -0800 Subject: epoll: ignore ECONNRESET errors Nothing we can do about that from clients. Perhaps kgio should just return nil for those... --- lib/rainbows/epoll/client.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/rainbows/epoll') diff --git a/lib/rainbows/epoll/client.rb b/lib/rainbows/epoll/client.rb index a3ae6db..334baa3 100644 --- a/lib/rainbows/epoll/client.rb +++ b/lib/rainbows/epoll/client.rb @@ -44,6 +44,8 @@ module Rainbows::Epoll::Client break end until :close == @state close unless closed? + rescue Errno::ECONNRESET + close rescue IOError end -- cgit v1.2.3-24-ge0c7