]> git.ipfire.org Git - thirdparty/squid.git/commit
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)
committerAmos Jeffries <yadij@users.noreply.github.com>
Sat, 6 Jan 2018 06:38:53 +0000 (19:38 +1300)
commit6b6b34eb4d936b8b22d593e0c55bdb528950b4c9
tree4aea35d9b078240355a9ad7b7c73c1786369112f
parent3c21f84d8768566f30dd7bf982e4c1e3f230bc34
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