diff options
Diffstat (limited to 'lib/yahns/proxy_pass.rb')
-rw-r--r-- | lib/yahns/proxy_pass.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/yahns/proxy_pass.rb b/lib/yahns/proxy_pass.rb index 89c6ef8..9512318 100644 --- a/lib/yahns/proxy_pass.rb +++ b/lib/yahns/proxy_pass.rb @@ -74,7 +74,10 @@ class Yahns::ProxyPass # :nodoc: rescue => e # avoid polluting logs with a giant backtrace when the problem isn't # fixable in code. - e.set_backtrace([]) if Errno::ECONNREFUSED === e + case e + when Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EPIPE + e.set_backtrace([]) + end c.proxy_err_response(502, self, e, nil) end |