socket-tcp-skip-in-flight: Don't fail on EAGAIN
The server socket is marked as nonblocking, and if the client doesn't connect, accept() will fail and set errno to EAGAIN (or EWOULDBLOCK). Instead, use poll to wait for POLLIN event on the file descriptor. Suggested-by:Andrei Vagin <avagin@gmail.com> Signed-off-by:
Radostin Stoyanov <rstoyanov1@gmail.com>
Showing
Please
register
or
sign in
to comment