]> git.ipfire.org Git - thirdparty/squid.git/commit
Reforward CONNECT after TLS handshake failure with peer (#489)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Wed, 17 Jun 2020 13:01:37 +0000 (13:01 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Wed, 17 Jun 2020 15:09:36 +0000 (15:09 +0000)
commit25d2603fc361912cf7c38ce0789ce07254d73b0f
tree1edb6a7d57dcd8667524c4ff1687c5088e6a01b7
parenteec67f04490a477d69891c8b05a94bea05e5efbf
Reforward CONNECT after TLS handshake failure with peer (#489)

When Squid received a CONNECT request and attempted to establish a
secure connection to an SSL cache_peer, it did not try the next
available destination after a TLS negotiation failure.

Why retry such TLS negotiation failures? Peer B may not have the same
misconfiguration that led to the negotiation failure when talking to
peer A. Admins may improve fault tolerance by using pools of different
peers or pools of identical peers that are reconfigured one by one. And
FwdState already does this -- flags.connected_okay is not set until TLS
negotiation is successful.
src/tunnel.cc