[squid-dev] [PATCH] pconn_lifetime

Tsantilas Christos chtsanti at users.sourceforge.net
Mon Dec 15 10:39:35 UTC 2014


Hi all,

  I am attaching a new patch for the "pconn_lifetime" feature. A first 
patch has posted in mailing list and discussed under the mail thread 
with the same title 1-2 months ago.

This patch is similar to the old one posted, with a small fix to better 
handle pipelined connections:
   1. finish interpreting the Nth request
      check whether pconn_lifetime has expired
   2. if pconn_lifetime has expired, then stop further reading and
      do not interpret any already read raw bytes of the N+1st request
   3. otherwise, read and interpret read raw bytes of the N+1st request
      and go to #1.

The above should be enough. The pipelined requests are always 
idempotent, they do not have body data to take care about, and the web 
clients knows that if a pipelined HTTP request failed, it should be 
retried in a new connection.

I must recall the following about this patch:
    - The pconn_lifetime it applies to any persistent connection, 
server, client, or ICAP.
    - This patch does not fix other problems may exist in current squid.
    - The pconn_lifetime should not confused with the client_lifetime 
timeout. They have different purpose.

This is a Measurement Factory project

-------------- next part --------------
A non-text attachment was scrubbed...
Name: trunk-pconn_lifetime-t4.patch
Type: text/x-patch
Size: 17402 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20141215/065fcfdc/attachment-0001.bin>


More information about the squid-dev mailing list