]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 3111: Mid-term fix for the forward.cc "err" assertion.
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 1 Feb 2013 04:56:07 +0000 (21:56 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 1 Feb 2013 04:56:07 +0000 (21:56 -0700)
commit2c92984cb953e3572aa8b4a3b035e4cfcb556726
tree92c7262dd5b252d5c7bbf2f0922a57598e100b76
parentfb5b6e901e961bdb7f76c46980cb7fe13c791dc2
Bug 3111: Mid-term fix for the forward.cc "err" assertion.

The assert is triggered when a close handler for the server connection
destroys FwdState before we have received anything from the origin
server.
Instead of asserting, we now respond with a 502 (Bad Gateway)
ERR_READ_ERROR.

That error seems the most appropriate single choice among available
ones, but
it may be misleading (in access.log) when the close handler was called
due to
client problems. Hopefully, another error will be logged in most of
those
cases.
src/forward.cc