]> git.ipfire.org Git - thirdparty/squid.git/commit
Ignore ECONNABORTED in accept(2) (#404)
authorMatthieu Herrb <matthieu.herrb@laas.fr>
Mon, 13 May 2019 08:45:57 +0000 (08:45 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 14 May 2019 14:00:27 +0000 (14:00 +0000)
commitfb730aadbabc7e3c46343b29b12e5295cb677178
treeb049741623694a916044fbc7a938eff7b25db476
parent444c5f0531241e7afa66eb5a46e1cb0c75d0861b
Ignore ECONNABORTED in accept(2) (#404)

An aborted connection attempt does not affect listening socket's
ability to accept other connections. If the error is not ignored, Squid
gets stuck after logging an oldAccept error like this one:

    oldAccept ...: (53) Software caused connection abort

This bug fix was motivated by accept(2) changes in OpenBSD v6.5 that
resulted in new ECONNABORTED errors under regular deployment conditions:
https://github.com/openbsd/src/commit/c255b5a
compat/os/mswindows.h
src/comm/TcpAcceptor.cc