]> git.ipfire.org Git - thirdparty/squid.git/commit - src/client_side.cc
Author: Tsantilas Christos <chtsanti@users.sourceforge.net>
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 21 Dec 2009 12:13:11 +0000 (01:13 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 21 Dec 2009 12:13:11 +0000 (01:13 +1300)
commitf692498bb44b36154c27c634ac4f263a751add9c
tree19ebdcf8de46d571d862b38948ee46c16225d3e6
parent5ef5e5ccd4f4985ca3a6c8f86ce000ad2422a8f5
Author: Tsantilas Christos <chtsanti@users.sourceforge.net>
Append the _ABORTED or _TIMEDOUT suffixes to the action access.log field.

 * When an HTTP connection with a client times out, append _TIMEDOUT suffix
to the Squid result code field in access.log.

 * When an HTTP connection with the client is terminated prematurely by
Squid, append _ABORTED suffix to the result code field in access.log.
Premature connection termination may happen when, for example, I/O
errors or server side-problems force Squid to terminate the master
transaction and close all associated connections.

The above changes make it possible to identify failed transactions even
when they have 200/200 received/send response status codes and a
"successful" Squid result code (e.g., TCP_MISS). This is important when
one does not want 1-hour "stuck" transactions for 15-byte GIFs to
significantly skew the mean response time statistics. Such transactions
eventually terminate due to, say, TCP errors, and the old code would
record huge response times for successfully-looking transactions.

The development sponsored by the Measurement Factory
src/AccessLogEntry.h
src/client_side.cc
src/client_side.h
src/log/access_log.cc