manoj 99/04/21 21:14:41
Modified: pthreads/src/main http_main.c
Log:
We were setting max_daemons_limit based on the last fully living
children. Instead, we should set it based on the last non-dead child.
Revision Changes Path
1.77 +3 -1 apache-apr/pthreads/src/main/http_main.c
Index: http_main.c
===================================================================
RCS file: /home/cvs/apache-apr/pthreads/src/main/http_main.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -u -r1.76 -r1.77
--- http_main.c 1999/04/20 01:43:04 1.76
+++ http_main.c 1999/04/22 04:14:40 1.77
@@ -2163,6 +2163,9 @@
free_slots[free_length] = i;
++free_length;
}
+ if (!all_dead_threads) {
+ max_daemons_limit = i + 1;
+ }
if (!any_dying_threads) {
++total_non_dead;
last_non_dead = i;
@@ -2173,7 +2176,6 @@
}
}
}
- max_daemons_limit = last_non_dead + 1;
if (idle_count > ap_daemons_max_free) {
/* kill off one child... we use SIGWINCH because that'll cause it to
* shut down gracefully, in case it happened to pick up a request