From 1b3e68e3eac0c3fbb2a32e4fddd26ee8a50ec627 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 17 Jan 2014 01:31:43 +0000 Subject: error: silence ETIMEDOUT and EHOSTUNREACH errors There's nothing we can do about these errors due to network failures and bad clients, either, so do not spew a backtrace for them. --- lib/rainbows/error.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rainbows/error.rb b/lib/rainbows/error.rb index 8917c4d..736d5d8 100644 --- a/lib/rainbows/error.rb +++ b/lib/rainbows/error.rb @@ -25,7 +25,7 @@ module Rainbows::Error def self.response(e) case e when EOFError, Errno::ECONNRESET, Errno::EPIPE, Errno::EINVAL, - Errno::EBADF, Errno::ENOTCONN + Errno::EBADF, Errno::ENOTCONN, Errno::ETIMEDOUT, Errno::EHOSTUNREACH # swallow error if client shuts down one end or disconnects when Unicorn::HttpParserError Rainbows::Const::ERROR_400_RESPONSE # try to tell the client they're bad -- cgit v1.2.3-24-ge0c7