]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix and improve debugging of tunneled TCP connections (#2291)
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 2 Nov 2025 13:48:19 +0000 (13:48 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 2 Nov 2025 14:50:38 +0000 (14:50 +0000)
commitbb464adee8b3ff058a204f927010d43a14c45121
tree80d8919413b1990d524ae8cb01c5fc70e7dba730
parent9d0ee3b33d4561ef3189562bb70ce00be191f9df
Fix and improve debugging of tunneled TCP connections (#2291)

When a to-client write failed, TunnelStateData::writeClientDone()
debugging said "from-client read failed".

TunnelStateData::keepGoingAfterRead() debugging did not differentiate
two key cases: zero-size read and Squid-initiated closure of the other
end of the tunnel. That "other end" was called "client", but it could be
the "server" end. Related `if` statements logic was difficult to follow.

TunnelStateData::Connection state was difficult to reconstruct when
debugging long-lived tunnels. These debugging enhancements were
instrumental in tunnel closure problems triage, but those problems
deserve dedicated fixes.

Debugging improvements aside, no functionality changes are expected.
src/tunnel.cc