httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grega...@apache.org
Subject cvs commit: httpd-2.0/modules/http http_protocol.c
Date Mon, 24 Jun 2002 17:06:19 GMT
gregames    2002/06/24 10:06:19

  Modified:    modules/http http_protocol.c
  Log:
  ap_discard_request_body: exit without reading the body if
  connection->keepalive is false.  This works in conjunction with
  ap_die which resets connection->keepalive any time
  ap_status_drops_connection is true.  The latter is explicity tested
  here in case ap_die isn't involved.
  
  Submitted by:   Justin Erenkrantz, Greg Ames
  
  Revision  Changes    Path
  1.441     +2 -1      httpd-2.0/modules/http/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/http/http_protocol.c,v
  retrieving revision 1.440
  retrieving revision 1.441
  diff -u -r1.440 -r1.441
  --- http_protocol.c	19 Jun 2002 18:43:28 -0000	1.440
  +++ http_protocol.c	24 Jun 2002 17:06:19 -0000	1.441
  @@ -1882,7 +1882,8 @@
        *
        * This function is also a no-op on a subrequest.
        */
  -    if (r->main || ap_status_drops_connection(r->status)) {
  +    if (r->main || !r->connection->keepalive
  +                || ap_status_drops_connection(r->status)) {
           return OK;
       }
   
  
  
  

Mime
View raw message