]> git.ipfire.org Git - thirdparty/squid.git/commit
Mimic GET reforwarding decisions when our CONNECT fails (#1168)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Sat, 22 Oct 2022 19:44:50 +0000 (19:44 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 22 Oct 2022 19:50:59 +0000 (19:50 +0000)
commita98270b0d30818a4ac2f3202a909ff4f7b93426c
treefeaa3a1fdd0d8fd4b26be17d697bcb11a15d2292
parent5139f0f64a4d7bba0d91d631b031c4700e7576b4
Mimic GET reforwarding decisions when our CONNECT fails (#1168)

Use FwdState::reforwardableStatus() logic when deciding whether to
reforward our CONNECT request after a failed tunneling attempt.

Also honor forward_max_tries limit when retrying tunneling attempts.

These TunnelStateData fixes deal with ordinary CONNECT traffic (no
SslBump). FwdState also handles CONNECT requests (with SslBump). We make
that CONNECT handling more consistent across these classes (in addition
to making it more consistent across CONNECT and GET/etc. methods).

Co-authored-by: Alex Rousskov <rousskov@measurement-factory.com>
src/FwdState.cc
src/FwdState.h
src/http.cc
src/http/StatusCode.cc
src/http/StatusCode.h
src/tunnel.cc