From 2783d3b69784231a36243c30a56aeefa6b39c181 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 4 Dec 2009 01:29:48 -0800 Subject: do not log IOError raised during app processing A client disconnect could possibly trigger IOError on close whereas EOFError does not occur. --- lib/rainbows/error.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/rainbows/error.rb') diff --git a/lib/rainbows/error.rb b/lib/rainbows/error.rb index 89b1187..2d8cd94 100644 --- a/lib/rainbows/error.rb +++ b/lib/rainbows/error.rb @@ -19,10 +19,11 @@ module Rainbows def response(e) case e - when EOFError,Errno::ECONNRESET,Errno::EPIPE,Errno::EINVAL,Errno::EBADF + when EOFError, Errno::ECONNRESET,Errno::EPIPE,Errno::EINVAL,Errno::EBADF # swallow error if client shuts down one end or disconnects when Unicorn::HttpParserError Const::ERROR_400_RESPONSE # try to tell the client they're bad + when IOError # HttpParserError is an IOError else app(e) Const::ERROR_500_RESPONSE -- cgit v1.2.3-24-ge0c7