]> git.ipfire.org Git - thirdparty/squid.git/commit
Log %err_code for ERR_RELAY_REMOTE transactions (#1472)
authorAlex Rousskov <rousskov@measurement-factory.com>
Sat, 9 Sep 2023 03:01:52 +0000 (03:01 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 11 Sep 2023 03:16:00 +0000 (03:16 +0000)
commitef959d6e9e3eaec762d68b96af272e39cd000799
treedbd8fd5c6b68a1de97e801a011ff57dc1238af2e
parentea3f56e21ee0d7dd570092cabe23161b363f8cec
Log %err_code for ERR_RELAY_REMOTE transactions (#1472)

For ERR_RELAY_REMOTE transactions, Squid was logging %err_code as "-"
because BuildHttpReply() was not updating HttpRequest::error or ALE.
That update was missing because the pre-computed response in those
transactions triggered a premature exit from BuildHttpReply().

BuildHttpReply() should not be updating errors at all, but significant
code refactoring required to fix that problem needs a dedicated change.

Also enabled regression testing for the fixed bug and the bug fixed in
recent commit ea3f56e.
src/clients/HttpTunneler.cc
src/errorpage.cc
src/errorpage.h
test-suite/test-functionality.sh