From 3ee03083c075840546445e460debdbda26f430f6 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 26 Aug 2001 01:17:32 +0000 Subject: [PATCH] i think the answer to aaron's question is "a typo". otherwise there is 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 --- server/mpm/worker/worker.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/mpm/worker/worker.c b/server/mpm/worker/worker.c index a56b1f9fff..18244a2703 100644 --- a/server/mpm/worker/worker.c +++ b/server/mpm/worker/worker.c @@ -755,9 +755,8 @@ static void *start_threads(apr_thread_t *thd, void * dummy) 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) { -- 2.50.1