]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Win32: Socket reuse is not enabled yet, so always mark used accept sockets
authorBill Stoddard <stoddard@apache.org>
Tue, 23 May 2000 17:28:51 +0000 (17:28 +0000)
committerBill Stoddard <stoddard@apache.org>
Tue, 23 May 2000 17:28:51 +0000 (17:28 +0000)
as being closed.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85278 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/mpm_winnt.c

index baae88fd4f9d3d6dd0763ffcbda0f51e2299da39..78c000340b272a1218793dae77544742ef4124e3 100644 (file)
@@ -923,6 +923,7 @@ static ap_inline ap_status_t reset_acceptex_context(PCOMP_CONTEXT context)
                          "reset_acceptex_context: AcceptEx failed for "
                          "listening socket: %d and accept socket: %d", 
                          nsd, context->accept_socket);
+            context->accept_socket = INVALID_SOCKET;
             return lasterror;
         }
     }
@@ -1078,6 +1079,7 @@ static void worker_main(int child_num)
 
         ap_process_connection(current_conn);
         ap_lingering_close(current_conn);
+        context->accept_socket = INVALID_SOCKET;
     }
 
     ap_log_error(APLOG_MARK, APLOG_INFO, APR_SUCCESS, server_conf,