[squid-dev] [PATCH] Honor peer timeouts when forwarding CONNECTs
eduard.bagdasaryan at measurement-factory.com
Sun Mar 12 21:50:13 UTC 2017
This patch fixes two bugs with tunneling CONNECT requests (or equivalent
traffic) through a cache_peer:
1. Not detecting dead cache_peers due to missing code to count peer
connect failures. SSL-level failures were detected (for "tls"
cache_peers) but TCP/IP connect(2) failures were not (for all peers).
2. Origin server connect_timeout used instead of peer_connect_timeout or
a peer-specific connect-timeout=N (where configured).
The regular forwarding code path does not have the above bugs. This
change reduces code duplication across the two code paths (that
duplication probably caused these bugs in the first place), but a lot
more work is needed in that direction.
This patch applies to v5 r15094. I assume v4 should be fixed as well:
the same patch applies to v4 r14999.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 58320 bytes
Desc: not available
More information about the squid-dev