You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by je...@apache.org on 2002/03/19 19:54:30 UTC

cvs commit: httpd-docs-1.3/htdocs/manual/misc API.html

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>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org