unix: ignore ECONNABORTED errors from accept()
ECONNABORTED means that the connection was torn down by the peer before the TCP handshake completed. Ignore it, there's nothing we can do and it simplifies error handling for libuv users.
This commit is contained in:
parent
4ae316bcc9
commit
8409a6765b
@ -182,6 +182,9 @@ void uv__server_io(EV_P_ ev_io* watcher, int revents) {
|
||||
} else if (errno == EMFILE) {
|
||||
/* TODO special trick. unlock reserved socket, accept, close. */
|
||||
return;
|
||||
} else if (errno == ECONNABORTED) {
|
||||
/* ignore */
|
||||
continue;
|
||||
} else {
|
||||
uv__set_sys_error(stream->loop, errno);
|
||||
stream->connection_cb((uv_stream_t*)stream, -1);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user