[squid-dev] [PATCH] pconn_lifetime
Tsantilas Christos
chtsanti at users.sourceforge.net
Wed Dec 24 09:34:38 UTC 2014
Patch applied to trunk (revno: 13780).
On 12/23/2014 08:52 PM, Tsantilas Christos wrote:
> If there is not any objection I will apply this patch to trunk.
>
> On 12/15/2014 12:39 PM, Tsantilas Christos wrote:
>> 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
>>
More information about the squid-dev
mailing list