httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: httpd-docs-1.3/htdocs/manual/misc API.html
Date Tue, 19 Mar 2002 18:54:30 GMT
jerenkrantz    02/03/19 10:54:30

  Modified:    htdocs/manual/misc API.html
  Log:
  The resp_handlers documentation was sorely out of date.  Make it have
  a shot at reflecting 1.3 reality (untested, but surely better).
  
  PR: BZ 7252
  
  Revision  Changes    Path
  1.20      +12 -7     httpd-docs-1.3/htdocs/manual/misc/API.html
  
  Index: API.html
  ===================================================================
  RCS file: /home/cvs/httpd-docs-1.3/htdocs/manual/misc/API.html,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- API.html	8 Oct 2001 01:26:54 -0000	1.19
  +++ API.html	19 Mar 2002 18:54:30 -0000	1.20
  @@ -491,23 +491,28 @@
       if (r->method_number != M_GET) return DECLINED;
       if (r->finfo.st_mode == 0) return NOT_FOUND;
   
  -    if ((errstatus = ap_set_content_length (r, r->finfo.st_size))
  -    || (errstatus = ap_set_last_modified (r, r->finfo.st_mtime)))
  +    if ((errstatus = ap_set_content_length (r, r->finfo.st_size)) {
           return errstatus;
  +    }
  +
  +    r->mtime = r->finfo.st_mtime;
  +    ap_set_last_modified (r);
   
  -    f = fopen (r->filename, "r");
  +    f = ap_pfopen (r->pool, r->filename, "r");
   
       if (f == NULL) {
  -        log_reason("file permissions deny server access",
  -                   r->filename, r);
  +        ap_log_rerror(APLOG_MARK, APLOG_ERR, r,
  +             "file permissions deny server access: %s", r->filename);
           return FORBIDDEN;
       }
   
  -    register_timeout ("send", r);
  +    ap_soft_timeout ("send", r);
       ap_send_http_header (r);
   
  -    if (!r->header_only) send_fd (f, r);
  +    if (!r->header_only) ap_send_fd (f, r);
       ap_pfclose (r->pool, f);
  +
  +    ap_kill_timeout (r);
       return OK;
   }
   </pre>
  
  
  

Mime
View raw message