about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-03 01:56:21 +0000
committerEric Wong <e@80x24.org>2016-06-03 01:58:09 +0000
commit976e81c9ff6ea2d007c486167e01d638bdbb4671 (patch)
tree22b8f6d97be9380e19d1a9ac3d48597748185e93 /lib
parent50bd1a838eafa6cbca5e1b19fec1df4682da0bdb (diff)
downloadyahns-976e81c9ff6ea2d007c486167e01d638bdbb4671.tar.gz
"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.
Diffstat (limited to 'lib')
-rw-r--r--lib/yahns/proxy_http_response.rb2
1 files changed, 0 insertions, 2 deletions
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)