httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@hyperreal.org
Subject cvs commit: apache-1.3/src/main http_core.c
Date Thu, 10 Sep 1998 17:36:16 GMT
stoddard    98/09/10 10:36:16

  Modified:    src/main http_core.c
  Log:
  Remove NT 64 thread limit.
  
  Submitted by: Ken Parzygnat, Bill Stoddard
  Reviewed by: Bill Stoddard
  
  Revision  Changes    Path
  1.229     +11 -4     apache-1.3/src/main/http_core.c
  
  Index: http_core.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/main/http_core.c,v
  retrieving revision 1.228
  retrieving revision 1.229
  diff -u -r1.228 -r1.229
  --- http_core.c	1998/09/09 22:05:29	1.228
  +++ http_core.c	1998/09/10 17:36:15	1.229
  @@ -1991,11 +1991,18 @@
       }
   
       ap_threads_per_child = atoi(arg);
  -#ifdef WIN32
  -    if (ap_threads_per_child > 64) {
  -	return "Can't have more than 64 threads in Windows (for now)";
  +    if (ap_threads_per_child > HARD_SERVER_LIMIT) {
  +        fprintf(stderr, "WARNING: ThreadsPerChild of %d exceeds compile time limit "
  +                "of %d threads,\n", ap_threads_per_child, HARD_SERVER_LIMIT);
  +        fprintf(stderr, " lowering ThreadsPerChild to %d.  To increase, please "
  +                "see the\n", HARD_SERVER_LIMIT);
  +        fprintf(stderr, " HARD_SERVER_LIMIT define in src/include/httpd.h.\n");
  +        ap_threads_per_child = HARD_SERVER_LIMIT;
  +    } 
  +    else if (ap_threads_per_child < 1) {
  +	fprintf(stderr, "WARNING: Require ThreadsPerChild > 0, setting to 1\n");
  +	ap_threads_per_child = 1;
       }
  -#endif
   
       return NULL;
   }
  
  
  

Mime
View raw message