Re: [squid-users] Re: half_closed_clients Policy Change

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Mon, 26 Oct 2009 15:33:03 +0100

sön 2009-10-25 klockan 23:18 -0500 skrev Dimitri Syuoul:

> Iam a squid-2.7.STABLE6 , and iam very curious as to why the twist ?
> Ive been noticing that sometimes when the users surf the internet the
> browser on specific sites just waits and waits for more data (even
> though the site apparently already loaded) . Could this be something
> that would benefit from having this option to off ?

Setting half_closed_clients off makes Squid promptly abort those
requests when the user gives up waiting.

With half_closed_clients on Squid still waits for the response and tries
to deliver it to the client, which most times will fail (client has
closed the connection).

Unfortunatly the TCP layer do not easily provide a separation between
half-closed and fully closed connections. They both look the same until
one tries to send some data down the connection at which time the client
either accepts the data (half-closed) or resets the connection (fully
closed). Unfortunately there is no data to send down to the client until
there is some data received from the requested server so Squid just sits
there waiting for up to 15 minutes hoping the client is still around
when there is some response to send.

Regards
Henrik
Received on Mon Oct 26 2009 - 14:33:10 MDT

This archive was generated by hypermail 2.2.0 : Mon Oct 26 2009 - 12:00:02 MDT