]> git.ipfire.org Git - thirdparty/squid.git/commit
Do not stop listening after "ERROR: NAT/TPROXY lookup failed..." (#837)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Sat, 12 Feb 2022 05:56:46 +0000 (05:56 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Thu, 17 Feb 2022 03:49:08 +0000 (03:49 +0000)
commit9fd3e68c3d0dfd6035db98ce142cf425be6c5fc1
treee9d0ee8c40d5607a9542f02cd62ab29d67faecbd
parente1c92a7cfd7d9d81079aae8cb22b4300e6625e82
Do not stop listening after "ERROR: NAT/TPROXY lookup failed..." (#837)

_Intermittent_ NAT/TPROXY lookup failures can happen for several reasons
outside Squid control. For example, flushing conntrack tables under load
is likely to trigger such errors. Squid should not stop listening if
there is a good change that the next accept(2) will be fully successful.
We already apply the same logic to several other accept problems today.

Also added an XXX that TcpAcceptor::mustStop() does not work as expected
on error.
src/comm/TcpAcceptor.cc