[PATCH] pinning cleanup (testers wanted)

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 11 Feb 2011 02:38:06 +1300

Since 1xx handing went in HttpRequest has had two links to the one
ConnStateData managing its client connection.

  * Rename the 1xx link to clientConnectionManager (since it is not
actually the connection, but the manager object controlling the FD usage
and stats.

* Convert the pinning code to using the permanent
clientConnectionManager link instead of a temporary pinned_connection link.

This moves all connection pinning state fully into the ConnStateData
manager objects scope.

Side changes that appear to be buggy code previously:
  * do not alter pinning state at the point where the pinned connection
is about to start being used. Changes are only relevant at the point of
pinning or unpinning.

  * unpin operation now closes the Server FD if still open. Previously
there was the possibility that some code paths would leave server FD
open and pconn it. (especially since the above mentioned state
alteration cleared the "pinned" flag).

Is there anyone using pinning able to assist test this please?

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.11
   Beta testers wanted for 3.2.0.4

Received on Thu Feb 10 2011 - 13:38:14 MST

This archive was generated by hypermail 2.2.0 : Thu Feb 10 2011 - 12:00:04 MST