manoj 99/04/12 16:47:27
Modified: pthreads/src/main http_accept.c
Log:
Ryan was right. We should only decrement requests_this_child after a
connection is accepted; otherwise, we will accept too few connections
(and once the child death code works properly, too few could mean zero).
Revision Changes Path
1.3 +1 -1 apache-apr/pthreads/src/main/http_accept.c
Index: http_accept.c
===================================================================
RCS file: /home/cvs/apache-apr/pthreads/src/main/http_accept.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -u -r1.2 -r1.3
--- http_accept.c 1999/04/09 04:10:37 1.2
+++ http_accept.c 1999/04/12 23:47:25 1.3
@@ -106,8 +106,8 @@
csd = -1;
}
else {
- requests_this_child--;
csd = accept(sd, &sa_client, &len);
+ requests_this_child--;
SAFE_ACCEPT(accept_mutex_off(my_tid - ap_threads_per_child));
}
(void) ap_update_child_status(my_pid, my_tid, SERVER_QUEUEING,