]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 5132: Close the tunnel if to-server conn closes after client (#957)
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 9 Jan 2022 10:41:24 +0000 (10:41 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 9 Jan 2022 10:41:26 +0000 (10:41 +0000)
commit752fa2083698a88533ef23d88490f43f153f7a4c
treeeb9fcc6182b596c3e87aa1d9e777191129da509b
parentc97d832bc2142bb3d29ecd3bdab9f41c9b7a79bd
Bug 5132: Close the tunnel if to-server conn closes after client (#957)

Since commit 25d2603, blind CONNECT tunnel "jobs" (and equivalent) were
not destroyed upon a "lonely" to-server connection closure, leading to
memory leaks. And when a from-client connection was still present at the
time of the to-server connection closure, we did not try to reforward,
violating the spirit of commit 25d2603 changes. Calling retryOrBail() is
sufficient to handle both cases.
src/tunnel.cc