]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Clean up and properly specify defaults for the new directives.
authorManoj Kasichainula <manoj@apache.org>
Fri, 23 Jul 1999 22:43:47 +0000 (22:43 +0000)
committerManoj Kasichainula <manoj@apache.org>
Fri, 23 Jul 1999 22:43:47 +0000 (22:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83494 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/dexter/dexter.c
server/mpm/dexter/mpm_default.h

index a0ef73cbdcba0fccb1e2e12cb5ed3bd6ddda880c..9ff919a711ad89ae7998b0cde24cc416e7140bca 100644 (file)
  * Actual definitions of config globals
  */
 
-static int threads_to_start=0;         /* Worker threads per child */
-static int min_spare_threads=1;
-static int max_spare_threads=HARD_THREAD_LIMIT;
-static int max_requests_per_child=0;
+static int threads_to_start = 0;         /* Worker threads per child */
+static int min_spare_threads = 0;
+static int max_spare_threads = 0;
+static int max_requests_per_child = 0;
 static char *ap_pid_fname=NULL;
 static int num_daemons=0;
 static int workers_may_exit = 0;
@@ -1440,8 +1440,10 @@ static void dexter_pre_config(pool *pconf, pool *plog, pool *ptemp)
 
     unixd_pre_config();
     ap_listen_pre_config();
-    num_daemons = HARD_SERVER_LIMIT;
-    threads_to_start = DEFAULT_THREADS_PER_CHILD;
+    num_daemons = DEFAULT_NUM_DAEMON;
+    threads_to_start = DEFAULT_START_THREAD;
+    min_spare_threads = DEFAULT_MIN_SPARE_THREAD;
+    max_spare_threads = DEFAULT_MAX_SPARE_THREAD;
     ap_pid_fname = DEFAULT_PIDLOG;
     ap_lock_fname = DEFAULT_LOCKFILE;
     max_requests_per_child = DEFAULT_MAX_REQUESTS_PER_CHILD;
index 32c70bb74e8cb9ffafa267d8c391c08b9f167cd4..881a5204650282833107b35d0130c8d50e83051d 100644 (file)
 #ifndef APACHE_MPM_DEFAULT_H
 #define APACHE_MPM_DEFAULT_H
 
-/* Number of servers to spawn off by default --- also, if fewer than
+/* Number of threads to spawn off by default --- also, if fewer than
  * this free when the caretaker checks, it will spawn more.
  */
-#ifndef DEFAULT_START_DAEMON
-#define DEFAULT_START_DAEMON 5
+#ifndef DEFAULT_START_THREAD
+#define DEFAULT_START_THREAD 5
 #endif
 
-/* Maximum number of *free* server processes --- more than this, and
+/* Maximum number of *free* server threads --- more than this, and
  * they will die off.
  */
 
-#ifndef DEFAULT_MAX_FREE_DAEMON
-#define DEFAULT_MAX_FREE_DAEMON 10
+#ifndef DEFAULT_MAX_SPARE_THREAD
+#define DEFAULT_MAX_SPARE_THREAD 10
 #endif
 
 /* Minimum --- fewer than this, and more will be created */
 
-#ifndef DEFAULT_MIN_FREE_DAEMON
-#define DEFAULT_MIN_FREE_DAEMON 5
+#ifndef DEFAULT_MIN_SPARE_THREAD
+#define DEFAULT_MIN_SPARE_THREAD 5
+#endif
+
+/* Limit on the threads per process.  Clients will be locked out if more than
+ * this  * HARD_SERVER_LIMIT are needed.
+ *
+ * We keep this for one reason it keeps the size of the scoreboard file small
+ * enough that we can read the whole thing without worrying too much about
+ * the overhead.
+ */
+#ifndef HARD_THREAD_LIMIT
+#define HARD_THREAD_LIMIT 64 
+#endif
+
+/* Number of servers to spawn off by default
+ */
+#ifndef DEFAULT_NUM_DAEMON
+#define DEFAULT_NUM_DAEMON 2
 #endif
 
 /* Limit on the total --- clients will be locked out if more servers than
 #define HARD_SERVER_LIMIT 8 
 #endif
 
-/* Limit on the threads per process.  Clients will be locked out if more than
- * this  * HARD_SERVER_LIMIT are needed.
- *
- * We keep this for one reason it keeps the size of the scoreboard file small
- * enough that we can read the whole thing without worrying too much about
- * the overhead.
- */
-#ifndef HARD_THREAD_LIMIT
-#define HARD_THREAD_LIMIT 64 
-#endif
-
-#ifndef DEFAULT_THREADS_PER_CHILD
-#define DEFAULT_THREADS_PER_CHILD 50
-#endif
-
 #endif /* AP_MPM_DEFAULT_H */