MEDIUM: listener: fix polling management in the accept loop
authorWilly Tarreau <w@1wt.eu>
Mon, 20 Jan 2014 20:21:30 +0000 (21:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 20 Jan 2014 21:27:16 +0000 (22:27 +0100)
commita593ec5bf4ac58e7489535eb256f4763ac8027ff
treee44bd028a5c640599a2edf7196428c31cd192ad4
parentfa7fc95e16fae8b30f2522f59bb945c596e48419
MEDIUM: listener: fix polling management in the accept loop

The accept loop used to force fd_poll_recv() even in places where it
was not completely appropriate (eg: unexpected errors). It does not
yet cause trouble but will do with the upcoming polling changes. Let's
use it only where relevant now. EINTR/ECONNABORTED do not result in
poll() anymore but the failed connection is simply skipped (this code
dates from 1.1.32 when error codes were first considered).
src/listener.c