]> 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>
Mon, 28 Jan 2013 04:13:51 +0000 (21:13 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 28 Jan 2013 04:13:51 +0000 (21:13 -0700)
commitd32b34dcfb3ee0f1e8a7f6fefb5c1eedaa71d09e
treef58c626fb28b5ff899b6839d3184ce0bedcba428
parent3947642d720a4a7c0ad2fcc923065165442570fe
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