[PATCH] Append _ABORTED or _TIMEDOUT suffixes to the squid result code field

From: Tsantilas Christos <chtsanti_at_users.sourceforge.net>
Date: Tue, 15 Dec 2009 21:56:08 +0200

Hi all,
     this patch append the _ABORTED or _TIMEDOUT suffixes to the action
access.log field.
The patch also exist for squid3.1 branch.

The development sponsored by the Measurement Factory

Description:
   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.

-
Christos

Received on Tue Dec 15 2009 - 19:56:21 MST

This archive was generated by hypermail 2.2.0 : Wed Dec 16 2009 - 12:00:03 MST