Skip to content

Commit 3a5501e

Browse files
committed
ECONNABORTED is not a critical error (Andrei Nigmatulin)
1 parent d56933b commit 3a5501e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sapi/cgi/fastcgi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,11 @@ int fcgi_accept_request(fcgi_request *req)
927927
}
928928
}
929929

930+
#ifdef _WIN32
930931
if (req->fd < 0 && (in_shutdown || errno != EINTR)) {
932+
#else
933+
if (req->fd < 0 && (in_shutdown || (errno != EINTR && errno != ECONNABORTED))) {
934+
#endif
931935
return -1;
932936
}
933937

0 commit comments

Comments
 (0)