diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-07-27 17:03:37 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-07-27 17:03:37 +0000 |
commit | d3ecf49abeda931e23023e1afb93d4c6145f559a (patch) | |
tree | 4241d24a48b0f7b8e0746bb08da8d074d014c589 /lib | |
parent | 39f0cf9dcc971369a4618d0320e0a721a9abd4c1 (diff) | |
download | rainbows-d3ecf49abeda931e23023e1afb93d4c6145f559a.tar.gz |
Not sure where this is happening, but this can trigger Errno::EBADF under heavy load.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rainbows/event_machine.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/event_machine.rb b/lib/rainbows/event_machine.rb index c290a07..7fe9864 100644 --- a/lib/rainbows/event_machine.rb +++ b/lib/rainbows/event_machine.rb @@ -150,7 +150,7 @@ module Rainbows def unbind async_close = @env[ASYNC_CLOSE] and async_close.succeed @body.respond_to?(:fail) and @body.fail - @_io.close + @_io.close unless @_io.closed? end end |