Skip to content

Commit

Permalink
treat ECONNABORTED from accept() syscall as a transient error
Browse files Browse the repository at this point in the history
  • Loading branch information
manjuraj committed Jan 6, 2014
1 parent f2c5613 commit 5a330fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nc_proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ proxy_accept(struct context *ctx, struct conn *p)
continue;
}

if (errno == EAGAIN || errno == EWOULDBLOCK) {
if (errno == EAGAIN || errno == EWOULDBLOCK || errno == ECONNABORTED) {
log_debug(LOG_VERB, "accept on p %d not ready - eagain", p->sd);
p->recv_ready = 0;
return NC_OK;
Expand Down

0 comments on commit 5a330fe

Please sign in to comment.