diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-07-22 05:42:16 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-07-22 09:09:37 +0000 |
commit | 416d3a0f868571319a2b29b0034d2dba68e4d5b3 (patch) | |
tree | 081bdbdcce23063667c707212ceda45bbc322675 /lib/rainbows/error.rb | |
parent | 015daa81f26afc59d1da857b8bbedfb80eb532b1 (diff) | |
download | rainbows-416d3a0f868571319a2b29b0034d2dba68e4d5b3.tar.gz |
The FileStreamer class of EventMachine (and by extension NeverBlock) unfortunately doesn't handle this. It's possible to do with Revactor (since it uses Rev under the covers), but we'll support what we can easily for now.
Diffstat (limited to 'lib/rainbows/error.rb')
-rw-r--r-- | lib/rainbows/error.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rainbows/error.rb b/lib/rainbows/error.rb index 8b4d9ff..7c91050 100644 --- a/lib/rainbows/error.rb +++ b/lib/rainbows/error.rb @@ -32,6 +32,8 @@ module Rainbows when EOFError, Errno::ECONNRESET, Errno::EPIPE, Errno::EINVAL, Errno::EBADF, Errno::ENOTCONN # swallow error if client shuts down one end or disconnects + when Rainbows::Response416 + Const::ERROR_416_RESPONSE when Unicorn::HttpParserError Const::ERROR_400_RESPONSE # try to tell the client they're bad when IOError # HttpParserError is an IOError |