]> granicus.if.org Git - apache/commitdiff
Up HARD_THREAD_LIMIT. Handle it correctly in mpm_winnt.c
authorBill Stoddard <stoddard@apache.org>
Sun, 30 Jul 2000 04:53:33 +0000 (04:53 +0000)
committerBill Stoddard <stoddard@apache.org>
Sun, 30 Jul 2000 04:53:33 +0000 (04:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85948 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/mpm_default.h
server/mpm/winnt/mpm_winnt.c

index a0317179e35341a6ce463f26a53a4f331f4a6338..056ab1d57b643bfbd2ba300d76959eb51ce889e0 100644 (file)
@@ -88,7 +88,7 @@
  * the overhead.
  */
 #ifndef HARD_THREAD_LIMIT
-#define HARD_THREAD_LIMIT 64 
+#define HARD_THREAD_LIMIT 4096
 #endif
 
 /* Number of servers to spawn off by default
index a4c05604e0602428e126a5ce1a4b8ccf14b35e9c..b5bec3ed759aaa0359415310b3445856dc6f72f8 100644 (file)
@@ -2255,6 +2255,7 @@ static const char *set_threads_per_child (cmd_parms *cmd, void *dummy, char *arg
                      " lowering ThreadsPerChild to %d. To increase, please"
                      " see the  HARD_THREAD_LIMIT define in %s.", 
                      HARD_THREAD_LIMIT, AP_MPM_HARD_LIMITS_FILE);
+        ap_threads_per_child = HARD_THREAD_LIMIT;
     }
     else if (ap_threads_per_child < 1) {
        ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL,