From: William A. Rowe Jr Date: Sun, 13 Oct 2002 20:06:59 +0000 (+0000) Subject: Bigger hack alert. Expand the range of unrecycled sockets to include X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c744c49106b813be83ed586223975572e0ac060;p=apache Bigger hack alert. Expand the range of unrecycled sockets to include WSAENOTSOCK for dealing with the AcceptEx failed bug reports. Experimental build to go out shortly. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97197 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/winnt/child.c b/server/mpm/winnt/child.c index 9046287245..dd8c471a3f 100644 --- a/server/mpm/winnt/child.c +++ b/server/mpm/winnt/child.c @@ -512,7 +512,8 @@ static void winnt_accept(void *lr_) &BytesRead, &context->Overlapped)) { rv = apr_get_netos_error(); - if (rv == APR_FROM_OS_ERROR(WSAEINVAL)) { + if (rv == APR_FROM_OS_ERROR(WSAEINVAL) || + rv == APR_FROM_OS_ERROR(WSAENOTSOCK)) { /* Hack alert. Occasionally, TransmitFile will not recycle the * accept socket (usually when the client disconnects early). * Get a new socket and try the call again.