]> granicus.if.org Git - apache/commitdiff
Bigger hack alert. Expand the range of unrecycled sockets to include
authorWilliam A. Rowe Jr <wrowe@apache.org>
Sun, 13 Oct 2002 20:06:59 +0000 (20:06 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Sun, 13 Oct 2002 20:06:59 +0000 (20:06 +0000)
  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

server/mpm/winnt/child.c

index 9046287245c05235b82d26cfe006f5942d6d4da2..dd8c471a3f3173451be0c9514787d0678fe7cf71 100644 (file)
@@ -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.