jim 96/10/13 17:18:47
Modified: src http_core.c Log: Make Apache complain with > HARD_SERVER_LIMIT Revision Changes Path 1.36 +8 -3 apache/src/http_core.c Index: http_core.c =================================================================== RCS file: /export/home/cvs/apache/src/http_core.c,v retrieving revision 1.35 retrieving revision 1.36 diff -C3 -r1.35 -r1.36 *** http_core.c 1996/10/10 12:12:00 1.35 --- http_core.c 1996/10/14 00:18:46 1.36 *************** *** 50,56 **** * */ ! /* $Id: http_core.c,v 1.35 1996/10/10 12:12:00 fielding Exp $ */ #define CORE_PRIVATE #include "httpd.h" --- 50,56 ---- * */ ! /* $Id: http_core.c,v 1.36 1996/10/14 00:18:46 jim Exp $ */ #define CORE_PRIVATE #include "httpd.h" *************** *** 879,886 **** char *set_server_limit (cmd_parms *cmd, void *dummy, char *arg) { daemons_limit = atoi (arg); ! if (daemons_limit > HARD_SERVER_LIMIT) ! daemons_limit = HARD_SERVER_LIMIT; return NULL; } --- 879,891 ---- char *set_server_limit (cmd_parms *cmd, void *dummy, char *arg) { daemons_limit = atoi (arg); ! if (daemons_limit > HARD_SERVER_LIMIT) { ! fprintf(stderr, "WARNING: Compile-time limit of %d servers\n", ! HARD_SERVER_LIMIT); ! fprintf(stderr, " Adjusting as required (to increase, please read\n"); ! fprintf(stderr, " the documentation)\n"); ! daemons_limit = HARD_SERVER_LIMIT; ! } return NULL; }