From 976e81c9ff6ea2d007c486167e01d638bdbb4671 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 3 Jun 2016 01:56:21 +0000 Subject: proxy_pass: remove unnecessary rescue "proxy_response_start" caller is ReqRes#yahns_step which already does a global rescue. Furthermore, it clobbers backtraces on network errors which programmers can do nothing to fix. --- lib/yahns/proxy_http_response.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib') diff --git a/lib/yahns/proxy_http_response.rb b/lib/yahns/proxy_http_response.rb index 79b995a..2968062 100644 --- a/lib/yahns/proxy_http_response.rb +++ b/lib/yahns/proxy_http_response.rb @@ -220,8 +220,6 @@ module Yahns::HttpResponse # :nodoc: # all done reading response from upstream, req_res will be discarded # when we return nil: proxy_busy_mod(wbuf, req_res) - rescue => e - proxy_err_response(502, req_res, e, wbuf) end def proxy_response_finish(kcar, wbuf, req_res) -- cgit v1.2.3-24-ge0c7