summaryrefslogtreecommitdiffstats
path: root/server/mpm/worker
diff options
context:
space:
mode:
authorColm MacCarthaigh <colm@apache.org>2005-08-31 18:01:13 +0200
committerColm MacCarthaigh <colm@apache.org>2005-08-31 18:01:13 +0200
commitcef7ca9fe65d41dc7572e18524b38c19e00f71bc (patch)
tree572768c5ccbab5ccbec79a0464496bf6245419b1 /server/mpm/worker
parentAdd ap_append_pid(); This is performed enough to warrant (diff)
downloadapache2-cef7ca9fe65d41dc7572e18524b38c19e00f71bc.tar.xz
apache2-cef7ca9fe65d41dc7572e18524b38c19e00f71bc.zip
Actually allow the admin to set thread_limit higher than the default.
Also, initialise the first_ variables, since they are tested in the set_ functions. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@265518 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/mpm/worker')
-rw-r--r--server/mpm/worker/worker.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/mpm/worker/worker.c b/server/mpm/worker/worker.c
index 3dfdcc270a..931fb79ce3 100644
--- a/server/mpm/worker/worker.c
+++ b/server/mpm/worker/worker.c
@@ -120,9 +120,9 @@ static int min_spare_threads = 0;
static int max_spare_threads = 0;
static int ap_daemons_limit = 0;
static int server_limit = DEFAULT_SERVER_LIMIT;
-static int first_server_limit;
+static int first_server_limit = 0;
static int thread_limit = DEFAULT_THREAD_LIMIT;
-static int first_thread_limit;
+static int first_thread_limit = 0;
static int changed_limit_at_restart;
static int dying = 0;
static int workers_may_exit = 0;
@@ -2097,7 +2097,7 @@ static const char *set_threads_per_child (cmd_parms *cmd, void *dummy,
}
ap_threads_per_child = atoi(arg);
- if (ap_threads_per_child > thread_limit) {
+ if (first_thread_limit && ap_threads_per_child > thread_limit) {
ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL,
"WARNING: ThreadsPerChild of %d exceeds ThreadLimit "
"value of %d", ap_threads_per_child,