]> git.ipfire.org Git - thirdparty/squid.git/commit
Author: Steven Wilton <swilton@q-net.net.au>
authoramosjeffries <>
Wed, 27 Feb 2008 17:43:56 +0000 (17:43 +0000)
committeramosjeffries <>
Wed, 27 Feb 2008 17:43:56 +0000 (17:43 +0000)
commitaebe081239fddcebde66f74c7e680cc8f613487a
treed5f8e8d96fd3ece3a189de843a47a130cdf265ba
parentb81e693ba3e4bac722c031a629935e364baa0a24
Author: Steven Wilton <swilton@q-net.net.au>
Sort cache list in wccpv2 to ensure a consistent hash allocation across all serv
ices

Under some circumstances different caches were being allocated differnet hash
assignments for different wccpv2 services.  This caused problems when using
TPROXY as the reply traffic was being sent to a different cache than the request
causing problems in browsing web pages.

This patch applied a selection sort algorithm to the cache list to ensure that
as long as the same group of caches are registered for any number of wccpv2
services, they will be allocated the same hash assignments in the router.
src/wccp2.cc