]> granicus.if.org Git - apache/commitdiff
Track a bit more child status in the Windows MPM
authorBill Stoddard <stoddard@apache.org>
Sat, 3 Feb 2001 19:37:12 +0000 (19:37 +0000)
committerBill Stoddard <stoddard@apache.org>
Sat, 3 Feb 2001 19:37:12 +0000 (19:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87964 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/mpm_winnt.c

index 1e18d0d4509b1739ef4ae1837da2fccfb3410627..ed9a22d62e7f5bf08e9d0cf01ecf80df2db295b7 100644 (file)
@@ -1130,7 +1130,7 @@ static PCOMP_CONTEXT winnt_get_connection(PCOMP_CONTEXT context)
  *    accepted socket, instead of blocking on a mutex or select().
  */
 
-static void worker_main(int child_num)
+static void worker_main(int thread_num)
 {
     PCOMP_CONTEXT context = NULL;
     apr_os_sock_info_t sockinfo;
@@ -1139,6 +1139,9 @@ static void worker_main(int child_num)
         conn_rec *c;
         apr_int32_t disconnected;
 
+        (void) ap_update_child_status(0, thread_num, SERVER_READY, 
+                                      (request_rec *) NULL);
+
         /* Grab a connection off the network */
         if (osver.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) {
             context = win9x_get_connection(context);
@@ -1149,6 +1152,7 @@ static void worker_main(int child_num)
 
         if (!context)
             break;
+
         sock_disable_nagle(context->accept_socket);
 
         sockinfo.os_sock = &context->accept_socket;
@@ -1158,8 +1162,11 @@ static void worker_main(int child_num)
         sockinfo.type    = SOCK_STREAM;
         apr_make_os_sock(&context->sock, &sockinfo, context->ptrans);
 
+        ap_update_child_status(0, thread_num,  
+                               SERVER_BUSY_READ, (request_rec *) NULL);
+
         c = ap_new_connection(context->ptrans, server_conf, context->sock,
-                              child_num);
+                              thread_num);
 
         ap_process_connection(c);