BUG/MINOR: listener: also clear the error flag on a paused listener
authorWilly Tarreau <w@1wt.eu>
Tue, 10 Dec 2019 07:42:21 +0000 (08:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Dec 2019 18:11:26 +0000 (19:11 +0100)
commitf10a920b20d310a87c55ce50e91bd8081024d810
treed74f583892e33959550c8203eba7ffbb46524c31
parent6b0244049d92e960805f46c9fbdd57d5508c56f0
BUG/MINOR: listener: also clear the error flag on a paused listener

When accept() fails because a listener is temporarily paused, the
FD might have both FD_POLL_HUP and FD_POLL_ERR bits set. While we do
not exploit FD_POLL_ERR here it's better to clear it because it is
reported on "show fd" and is confusing.

This may be backported to all versions.

(cherry picked from commit 20aeb1c7cd38907d704a4d769695b9ea264fa4c0)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/listener.c