diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-07-06 04:01:30 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-07-06 08:14:16 +0000 |
commit | 8b65858a864aa0ecfa24ccf8f910c36af0ec1ad6 (patch) | |
tree | 54425042893dc4faed151657d00fc05b54950426 /lib/rainbows/rev/sendfile.rb | |
parent | d0a1fcaf25b10ff1d6894d50fa981f56169195f3 (diff) | |
download | rainbows-8b65858a864aa0ecfa24ccf8f910c36af0ec1ad6.tar.gz |
We shouldn't ever spew errors to the stderr/logger on client disconnects (ECONNRESET/EPIPE/etc...).
Diffstat (limited to 'lib/rainbows/rev/sendfile.rb')
-rw-r--r-- | lib/rainbows/rev/sendfile.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/rev/sendfile.rb b/lib/rainbows/rev/sendfile.rb index 03ce41c..11cd114 100644 --- a/lib/rainbows/rev/sendfile.rb +++ b/lib/rainbows/rev/sendfile.rb @@ -14,8 +14,8 @@ module Rainbows::Rev::Sendfile def rev_sendfile(body) body.offset += @_io.sendfile_nonblock(body, body.offset, 0x10000) + enable_write_watcher rescue Errno::EAGAIN - ensure enable_write_watcher end else |