From 31a7777d0c646796e9a344c54f64269c51801fb6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 7 Jun 2016 04:07:19 +0000 Subject: proxy_pass: more descriptive error messages This should make it easier to figure out where certain errors are coming from and perhaps fix problems with upstreams, too. This helped me track down the problem causing public-inbox WWW component running under Perl v5.20.2 on my Debian jessie system to break and drop connections going through Plack::Middleware::Deflater with gzip: https://public-inbox.org/meta/20160607071401.29325-1-e@80x24.org/ Perl 5.14.2 on Debian wheezy did not detect this problem :x --- test/test_proxy_pass.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test_proxy_pass.rb') diff --git a/test/test_proxy_pass.rb b/test/test_proxy_pass.rb index 5dd8058..4c4b53a 100644 --- a/test/test_proxy_pass.rb +++ b/test/test_proxy_pass.rb @@ -485,7 +485,7 @@ class TestProxyPass < Testcase assert_equal exp, res errs = File.readlines(@err.path).grep(/\bERROR\b/) assert_equal 1, errs.size - assert_match(/premature upstream EOF/, errs[0]) + assert_match(/upstream EOF/, errs[0]) @err.truncate(0) # truncated headers or no response at all... @@ -501,7 +501,7 @@ class TestProxyPass < Testcase s.close errs = File.readlines(@err.path).grep(/\bERROR\b/) assert_equal 1, errs.size - assert_match(/premature upstream EOF/, errs[0]) + assert_match(/upstream EOF/, errs[0]) @err.truncate(0) end end -- cgit v1.2.3-24-ge0c7