httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/modules/mappers mod_negotiation.c
Date Fri, 24 Aug 2001 03:04:44 GMT
trawick     01/08/23 20:04:44

  Modified:    modules/mappers mod_negotiation.c
  Log:
  buffer .var maps to avoid asking the kernel for one byte at a
  time
  
  note that a system trace of .var map processing still shows an
  extra read() after we hit EOF the first time; we could make
  use of the EOF flag in APR to avoid the read() or play with
  mod_negotiation
  
  Suggested by:	Marc Slemko
  
  Revision  Changes    Path
  1.74      +1 -1      httpd-2.0/modules/mappers/mod_negotiation.c
  
  Index: mod_negotiation.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_negotiation.c,v
  retrieving revision 1.73
  retrieving revision 1.74
  diff -u -r1.73 -r1.74
  --- mod_negotiation.c	2001/08/23 20:29:47	1.73
  +++ mod_negotiation.c	2001/08/24 03:04:44	1.74
  @@ -854,7 +854,7 @@
       /* We are not using multiviews */
       neg->count_multiviews_variants = 0;
   
  -    if ((status = apr_file_open(map, rr->filename, APR_READ,
  +    if ((status = apr_file_open(map, rr->filename, APR_READ | APR_BUFFERED,
                   APR_OS_DEFAULT, neg->pool)) != APR_SUCCESS) {
           ap_log_rerror(APLOG_MARK, APLOG_ERR, status, r,
                         "cannot access type map file: %s", rr->filename);
  
  
  

Mime
View raw message