httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@apache.org
Subject cvs commit: httpd-2.0/modules/http http_core.c
Date Mon, 05 Feb 2001 18:28:56 GMT
stoddard    01/02/05 10:28:55

  Modified:    modules/http http_core.c
  Log:
  Tweak the AP_MIN_SENDFILE_BYTES.  Not using sendfile on Windows
  in the general (non byterange) case is a HUGE performance hit (> 50% in many cases).
  I also suspect most byterange requests will be for substantially more bytes (a pageful
  out of a larger document for example). In the uncommon (I believe) cases where
  fewer bytes are requested, 250 bytes per packet is not too abusive of the network.
  
  Revision  Changes    Path
  1.254     +1 -1      httpd-2.0/modules/http/http_core.c
  
  Index: http_core.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/http/http_core.c,v
  retrieving revision 1.253
  retrieving revision 1.254
  diff -u -r1.253 -r1.254
  --- http_core.c	2001/02/02 18:15:42	1.253
  +++ http_core.c	2001/02/05 18:28:47	1.254
  @@ -99,7 +99,7 @@
   #define AP_LIMIT_UNSET                  ((long) -1)
   #define AP_DEFAULT_LIMIT_XML_BODY       ((size_t)1000000)
   
  -#define AP_MIN_SENDFILE_BYTES           (8*1024)
  +#define AP_MIN_SENDFILE_BYTES           (256)
   
   /* Server core module... This module provides support for really basic
    * server operations, including options and commands which control the
  
  
  

Mime
View raw message