]> git.ipfire.org Git - thirdparty/squid.git/commit - src/peer_select.cc
Bug 2378: Duplicates in selected peer destinations (#112)
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 28 Dec 2017 16:35:32 +0000 (09:35 -0700)
committerGitHub <noreply@github.com>
Thu, 28 Dec 2017 16:35:32 +0000 (09:35 -0700)
commite7b08eec5b44ba887e7bed4a190a286896628922
treef29a40f7b95b956a9c8f0ebdbbdec5585c7f689b
parent593a978ee9c2e6a62b02ec7ee62ffe3ba21a7a55
Bug 2378: Duplicates in selected peer destinations (#112)

Duplicates in FwdServers lead to excessive peer connection retries, skew
in round-robin peer selection, and probably other problems.

This bug was fixed in 2008 but that v2 fix was never ported to v3. This
fix includes a bug 2408 fix for the original (bug 2378) fix, although I
adjusted bug 2408 logic to explicitly reject duplicate PINNED
destinations and to clarify why PINNED connection handling is "special".

I also centralized and improved peerAddFwdServer-related debugging,
removing duplicated and slightly inconsistent code.
src/peer_select.cc