actually 1 less thread available to serve requests than configured.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90670
13f79535-47bb-0310-9956-
ffa450edef68
my_info->sd = 0;
apr_thread_create(&listener, thread_attr, listener_thread, my_info, pchild);
while (1) {
- /* Does ap_threads_per_child include the listener thread?
- * Why does this forloop start at 1? -aaron */
- for (i = 1; i < ap_threads_per_child; i++) {
+ /* Does ap_threads_per_child include the listener thread? */
+ for (i = 0; i < ap_threads_per_child; i++) {
int status = ap_scoreboard_image->servers[child_num_arg][i].status;
if (status != SERVER_GRACEFUL && status != SERVER_DEAD) {