httpd-test-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grega...@apache.org
Subject cvs commit: httpd-test/specweb99/specweb99-2.0 mod_specweb99.c
Date Thu, 27 Feb 2003 00:09:32 GMT
gregames    2003/02/26 16:09:32

  Modified:    specweb99/specweb99-2.0 mod_specweb99.c
  Log:
  turn on the APR_SENDFILE_ENABLED flag if it exists.  This allows us to
  continue using sendfile after httpd-2.0.43.
  
  Revision  Changes    Path
  1.23      +6 -2      httpd-test/specweb99/specweb99-2.0/mod_specweb99.c
  
  Index: mod_specweb99.c
  ===================================================================
  RCS file: /home/cvs/httpd-test/specweb99/specweb99-2.0/mod_specweb99.c,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- mod_specweb99.c	3 Feb 2003 17:11:01 -0000	1.22
  +++ mod_specweb99.c	27 Feb 2003 00:09:31 -0000	1.23
  @@ -265,7 +265,11 @@
   
       b1 = apr_bucket_transient_create(bp_head, strlen(bp_head), c->bucket_alloc);
   
  -    rv = apr_file_open(&f, fname, APR_READ, APR_OS_DEFAULT, r->pool);
  +    rv = apr_file_open(&f, fname, APR_READ
  +#ifdef APR_SENDFILE_ENABLED
  +                                           | APR_SENDFILE_ENABLED
  +#endif
  +                       , APR_OS_DEFAULT, r->pool);
       if (rv != APR_SUCCESS) {
           ap_log_error(APLOG_MARK, APLOG_ERR, rv, r->server,
                        "Could not open file '%s' for reading", fname);
  
  
  

Mime
View raw message