httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject broken docco for ap_should_client_block?
Date Tue, 04 Nov 2003 01:49:17 GMT

/**
  * Determine if the client has sent any data.  This also sends a
  * 100 Continue response to HTTP/1.1 clients, so modules should not be called
  * until the module is ready to read content.
  * @warning Never call this function more than once.
  * @param r The current request
  * @return 0 if there is no message to read, 1 otherwise
  * @deffunc int ap_should_client_block(request_rec *r)
  */
AP_DECLARE(int) ap_should_client_block(request_rec *r);
...
AP_DECLARE(int) ap_should_client_block(request_rec *r)
{
     /* First check if we have already read the request body */

     if (r->read_length || (!r->read_chunked && (r->remaining <= 0)))
{
         return 0;
     }

     return 1;
}

It doesn't send '100 continue'. neither it's harmful to call it more than once.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Mime
View raw message