about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-20 13:26:59 -0800
committerEric Wong <normalperson@yhbt.net>2011-01-20 22:11:15 +0000
commit7ec2e407206036a993aadbcd39b13a2d86b7a288 (patch)
tree7241b687f1cb7a4530514bc07eea55095195f828
parent7ad4e300c29b06fd53aca9f9bad18f97f9a34633 (diff)
downloadrainbows-7ec2e407206036a993aadbcd39b13a2d86b7a288.tar.gz
Nothing we can do about that from clients.  Perhaps kgio
should just return nil for those...
-rw-r--r--lib/rainbows/epoll/client.rb2
1 files changed, 2 insertions, 0 deletions
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