From: Bill Stoddard Date: Tue, 23 May 2000 17:28:51 +0000 (+0000) Subject: Win32: Socket reuse is not enabled yet, so always mark used accept sockets X-Git-Tag: APACHE_2_0_ALPHA_4~97 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2ed396efb4bd5ce402c2ce6980131057779cad52;p=thirdparty%2Fapache%2Fhttpd.git Win32: Socket reuse is not enabled yet, so always mark used accept sockets as being closed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85278 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/winnt/mpm_winnt.c b/server/mpm/winnt/mpm_winnt.c index baae88fd4f9..78c000340b2 100644 --- a/server/mpm/winnt/mpm_winnt.c +++ b/server/mpm/winnt/mpm_winnt.c @@ -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,