Re: Avoid duplicate peers for no-direct and maybe-direct forwarding

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Wed, 09 May 2012 22:18:30 +0200

ons 2012-05-09 klockan 10:14 -0600 skrev Alex Rousskov:

> FWIW, the "duplicate peer addresses" problem does not exist in Squid 2.7
> which indirectly supports my assumption that this is a bug rather than a
> feature.

Squid-2 peerAddFwdServer skips duplicate peers.

    while (*FS) {
        if ((*FS)->peer == p && (*FS)->code != PINNED) {
            debug(44, 5) ("peerAddFwdServer: Skipping duplicate
registration of %s\n", p ? p->name : "DIRECT");
            return;
        }
        FS = &(*FS)->next;
    }

http://www.squid-cache.org/Versions/v2/2.7/changesets/12240.patch

Not sure why this have not been forward-ported. Seems our squid-2
changeset scripts have some issues to properly identify the patch status
in some cases.

Regards
Henrik
Received on Wed May 09 2012 - 20:18:36 MDT

This archive was generated by hypermail 2.2.0 : Thu May 10 2012 - 12:00:05 MDT