]> granicus.if.org Git - apache/commitdiff
Fix error messages issued from MPMs which explain where to change
authorJeff Trawick <trawick@apache.org>
Wed, 21 Jun 2000 13:15:30 +0000 (13:15 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 21 Jun 2000 13:15:30 +0000 (13:15 +0000)
compiled-in limits (e.g., ThreadsPerChild, MaxClients, StartTreads).

missing: the same minor changes for the 2nd BeOS MPM

Submitted by: Greg Ames
Reviewed by: Jeff Trawick

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85645 13f79535-47bb-0310-9956-ffa450edef68

configure.in
include/mpm_common.h
server/mpm/dexter/dexter.c
server/mpm/mpmt_beos/mpmt_beos.c
server/mpm/mpmt_pthread/mpmt_pthread.c
server/mpm/prefork/prefork.c
server/mpm/spmt_os2/spmt_os2.c
server/mpm/winnt/mpm_winnt.c

index 405791bc71df843e57fa4d3c2e6d4183335eafd4..31f1cbf479f047e4b38492106576d9c024a1f7d8 100644 (file)
@@ -186,6 +186,7 @@ echo '/* Generated by configure */' > ${path_h}.new
 echo "#define HTTPD_ROOT \"$prefix\"" >> ${path_h}.new
 echo "#define SUEXEC_BIN \"$bindir/suexec\"" >> ${path_h}.new
 echo "#define SERVER_CONFIG_FILE \"conf/$progname.conf\"" >> ${path_h}.new
+echo "#define APACHE_MPM_DIR \"$mpmdir\"" >> ${path_h}.new
 
 cmp ${path_h}.new ${path_h} >/dev/null 2>&1
 if test $? -ne 0 ; then
@@ -201,6 +202,7 @@ prefix=$prefix
 exec_prefix=$exec_prefix
 bindir=$bindir
 progname=$progname
+mpmdir=$MPM_DIR
 ])
 
 AC_TYPE_RLIM_T
index 0e83e8a597935e3bfc204841c3f11d7c27469612..6611c02a5c6cbcfa3fa2a30d9badbc3bce3c5b34 100644 (file)
@@ -77,6 +77,8 @@ extern "C" {
 void ap_reclaim_child_processes(int terminate);
 void ap_wait_or_timeout(ap_wait_t *status, ap_proc_t *ret, ap_pool_t *p);
 
+#define AP_MPM_HARD_LIMITS_FILE "src/" APACHE_MPM_DIR "/mpm_default.h"
+
 #ifdef __cplusplus
 }
 #endif
index 0a5bfc3393c691529c0ecdf5207a988ee1f98414..fae1df036678775fc4dbb461fcb423235e36ab94 100644 (file)
@@ -1312,7 +1312,8 @@ static const char *set_num_daemons (cmd_parms *cmd, void *dummy, const char *arg
                     " lowering NumServers to %d.  To increase, please "
                     "see the", HARD_SERVER_LIMIT);
        ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, 
-                    " HARD_SERVER_LIMIT define in src/include/httpd.h.");
+                    " HARD_SERVER_LIMIT define in %s.",
+                    AP_MPM_HARD_LIMITS_FILE);
        num_daemons = HARD_SERVER_LIMIT;
     } 
     else if (num_daemons < 1) {
@@ -1334,13 +1335,14 @@ static const char *set_threads_to_start (cmd_parms *cmd, void *dummy, const char
     if (threads_to_start > HARD_THREAD_LIMIT) {
         ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, 
                      "WARNING: StartThreads of %d exceeds compile time"
-                     "limit of %d threads,", threads_to_start,
+                     " limit of %d threads,", threads_to_start,
                      HARD_THREAD_LIMIT);
         ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, 
-                     "lowering StartThreads to %d. To increase, please"
-                     "see the", HARD_THREAD_LIMIT);
+                     " lowering StartThreads to %d. To increase, please"
+                     " see the", HARD_THREAD_LIMIT);
         ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, 
-                     "HARD_THREAD_LIMIT define in src/include/httpd.h.");
+                     " HARD_THREAD_LIMIT define in %s.",
+                     AP_MPM_HARD_LIMITS_FILE);
     }
     else if (threads_to_start < 1) {
        ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, 
index fc4b7b73cb0eee3839084c4e8cc2aa5909d2299b..adc0538681ec8893fe76f24d222950ec67ce5d3a 100644 (file)
@@ -1030,7 +1030,8 @@ static const char *set_server_limit (cmd_parms *cmd, void *dummy, char *arg)
                     " lowering MaxClients to %d.  To increase, please "
                     "see the", HARD_SERVER_LIMIT);
        ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, 
-                    " HARD_SERVER_LIMIT define in src/include/httpd.h.");
+                    " HARD_SERVER_LIMIT define in %s.",
+                    AP_MPM_HARD_LIMITS_FILE);
        ap_daemons_limit = HARD_SERVER_LIMIT;
     } 
     else if (ap_daemons_limit < 1) {
@@ -1058,7 +1059,8 @@ 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);
         ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, 
-                     " HARD_THREAD_LIMIT define in src/include/httpd.h.");
+                     " HARD_THREAD_LIMIT define in %s.",
+                     AP_MPM_HARD_LIMITS_FILE);
     }
     else if (ap_threads_per_child < 1) {
        ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, 
index da17520c10a8cd12fc4e1481c63149187a4dba42..e86c3c357abfd95e4b40a5f10533eb9a36c2e595 100644 (file)
@@ -1391,7 +1391,8 @@ static const char *set_server_limit (cmd_parms *cmd, void *dummy,
                     " lowering MaxClients to %d.  To increase, please "
                     "see the", HARD_SERVER_LIMIT);
        ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, 
-                    " HARD_SERVER_LIMIT define in src/include/httpd.h.");
+                    " HARD_SERVER_LIMIT define in %s.",
+                    AP_MPM_HARD_LIMITS_FILE);
        ap_daemons_limit = HARD_SERVER_LIMIT;
     } 
     else if (ap_daemons_limit < 1) {
@@ -1417,9 +1418,10 @@ static const char *set_threads_per_child (cmd_parms *cmd, void *dummy,
                      HARD_THREAD_LIMIT);
         ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, 
                      " lowering ThreadsPerChild to %d. To increase, please"
-                     "see the", HARD_THREAD_LIMIT);
+                     " see the", HARD_THREAD_LIMIT);
         ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, 
-                     " HARD_THREAD_LIMIT define in src/include/httpd.h.");
+                     " HARD_THREAD_LIMIT define in %s.",
+                     AP_MPM_HARD_LIMITS_FILE);
     }
     else if (ap_threads_per_child < 1) {
        ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, 
index 3e01e824f8959b913a0b57d6253a45f1c4237cce..e75a65a8efbd115db647d5fe1848f86886f0b8e0 100644 (file)
@@ -1728,7 +1728,8 @@ static const char *set_server_limit (cmd_parms *cmd, void *dummy, const char *ar
                     " lowering MaxClients to %d.  To increase, please "
                     "see the", HARD_SERVER_LIMIT);
        ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL,
-                    " HARD_SERVER_LIMIT define in src/include/httpd.h.");
+                    " HARD_SERVER_LIMIT define in %s.",
+                    AP_MPM_HARD_LIMITS_FILE);
        ap_daemons_limit = HARD_SERVER_LIMIT;
     } 
     else if (ap_daemons_limit < 1) {
index 783fadbc060dc52d7ef44f710cf4c3ce382895b2..79d4eef48c254e5a6a035d3a7c63b039e004118a 100644 (file)
@@ -1575,7 +1575,8 @@ static const char *set_server_limit (cmd_parms *cmd, void *dummy, char *arg)
                     " lowering MaxClients to %d.  To increase, please "
                     "see the", HARD_SERVER_LIMIT);
        ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, 
-                    " HARD_SERVER_LIMIT define in src/include/httpd.h.");
+                    " HARD_SERVER_LIMIT define in %s.",
+                    AP_MPM_HARD_LIMITS_FILE);
        ap_daemons_limit = HARD_SERVER_LIMIT;
     } 
     else if (ap_daemons_limit < 1) {
index b1738ff44cfb35fc413be724b39d4155bf0261a1..6eb513f99dcb166743c6344432603a6ece54b2a7 100644 (file)
@@ -2209,8 +2209,8 @@ static const char *set_threads_per_child (cmd_parms *cmd, void *dummy, char *arg
                      HARD_THREAD_LIMIT);
         ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL,
                      " lowering ThreadsPerChild to %d. To increase, please"
-                     " see the  HARD_THREAD_LIMIT define in src/include/httpd.h.", 
-                     HARD_THREAD_LIMIT);
+                     " see the  HARD_THREAD_LIMIT define in %s.", 
+                     HARD_THREAD_LIMIT, AP_MPM_HARD_LIMITS_FILE);
     }
     else if (ap_threads_per_child < 1) {
        ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL,