From: Eduard Bagdasaryan Date: Sat, 28 Jan 2023 09:36:56 +0000 (+0000) Subject: Fix logging of responses truncated by premature EOF (#1244) X-Git-Tag: SQUID_6_0_1~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=21f90159029aeb05fca55a6f48f120afb5f2b705;p=thirdparty%2Fsquid.git Fix logging of responses truncated by premature EOF (#1244) When a transaction failed due to a premature EOF while receiving an HTTP response, %Ss logformat code was missing the ABORTED suffix (e.g., logging TCP_MISS instead of TCP_MISS_ABORTED). When premature EOF truncated the header, the default "squid" access log format contained a 502 sent status code (%>Hs), hinting at the problem. When the body was truncated, even that weak hint was usually absent because the actual status code returned by the server (usually 200) was usually logged. Similarly, %err_code/%err_detail logformat codes for HTTP responses with truncated by a premature EOF bodies carried no information. Now they expand to ERR_READ_ERROR/SRV_PREMATURE_EOF in those cases. No changes to requests truncated by Squid-server read timeouts. They were and are still logged with TIMEDOUT %Ss suffix and ERR_READ_TIMEOUT/WITH_SERVER %err_code/%err_detail. Also adjusted WHOIS to mark zero-length responses with ERR_ZERO_SIZE_OBJECT instead of default ERR_READ_ERROR. This affects forwarded WHOIS transactions and AS number queries generated during (re)configuration. --- diff --git a/doc/release-notes/release-6.sgml b/doc/release-notes/release-6.sgml index e4df4b54d5..6ca8b0f086 100644 --- a/doc/release-notes/release-6.sgml +++ b/doc/release-notes/release-6.sgml @@ -114,7 +114,17 @@ This section gives an account of those changes in three categories: Changes to existing options