httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject [PATCH] conditionalize some httpd.h defines
Date Tue, 08 Apr 1997 20:38:56 GMT
Some of the defines (HARD_SERVER_LIMIT, IOBUFSIZE, DYNAMIC_MODULE_LIMIT)
in httpd.h aren't configurable in config files.  In my build environment
I build multiple apaches of varying configs from the same source and
it's easier to just -D these settings in my Configuration.foobar files.
Also, MAX_HEADERS wasn't used anywhere.

Dean

Index: httpd.h
===================================================================
RCS file: /export/home/cvs/apache/src/httpd.h,v
retrieving revision 1.95
diff -c -3 -r1.95 httpd.h
*** httpd.h	1997/04/08 04:06:03	1.95
--- httpd.h	1997/04/08 20:33:49
***************
*** 81,87 ****
--- 81,89 ----
  #endif
  
  /* Max. number of dynamically loaded modules */
+ #ifndef DYNAMIC_MODULE_LIMIT
  #define DYNAMIC_MODULE_LIMIT 64
+ #endif
  
  /* Default administrator's address */
  #define DEFAULT_ADMIN "[no address given]"
***************
*** 189,199 ****
  /* The number of requests to entertain per connection */
  #define DEFAULT_KEEPALIVE 100
  
! /* The size of the server's internal read-write buffers */
  #define IOBUFSIZE 8192
! 
! /* The number of header lines we will accept from a client */
! #define MAX_HEADERS 200
  
  /* Number of servers to spawn off by default --- also, if fewer than
   * this free when the caretaker checks, it will spawn more.
--- 191,200 ----
  /* The number of requests to entertain per connection */
  #define DEFAULT_KEEPALIVE 100
  
! /* The size of the server's internal buffers for reading from disk */
! #ifndef IOBUFSIZE
  #define IOBUFSIZE 8192
! #endif
  
  /* Number of servers to spawn off by default --- also, if fewer than
   * this free when the caretaker checks, it will spawn more.
***************
*** 221,227 ****
--- 222,230 ----
   * enough that we can read the whole thing without worrying too much about
   * the overhead.
   */
+ #ifndef HARD_SERVER_LIMIT
  #define HARD_SERVER_LIMIT 256
+ #endif
  
  /* Number of requests to try to handle in a single process.  If <= 0,
   * the children don't die off.  That's the default here, since I'm still




Mime
View raw message