MINOR: sock: add a check against cross worker<->master socket activities
authorWilly Tarreau <w@1wt.eu>
Wed, 4 Nov 2020 13:58:36 +0000 (14:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 4 Nov 2020 14:05:50 +0000 (15:05 +0100)
commitb4daeeb094ea03556613941f3977385270d6fe75
treef756a7928f2f9adb16e370875bb7eb442e2276d0
parentfafd1b0a5b3b6ee0c7d7dd288629c992fc63ef10
MINOR: sock: add a check against cross worker<->master socket activities

Given that the previous issues caused spurious worker socket wakeups in
the master for inherited FDs that couldn't be closed, let's add a strict
test in the I/O callback to make sure that an accept() event is always
caught by the appropriate type of process (master for master listeners,
worker for worker listeners).
src/sock.c