httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: httpd-2.0/modules/http http_protocol.c
Date Fri, 31 May 2002 20:41:06 GMT
rbb         2002/05/31 13:41:06

  Modified:    modules/http http_protocol.c
  Log:
  If the request doesn't have a body, then don't try to read it.  Without
  this, the httpd-test suite was taking five minutes for EVERY test.
  
  Revision  Changes    Path
  1.432     +5 -0      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.431
  retrieving revision 1.432
  diff -u -r1.431 -r1.432
  --- http_protocol.c	31 May 2002 07:19:04 -0000	1.431
  +++ http_protocol.c	31 May 2002 20:41:06 -0000	1.432
  @@ -903,6 +903,11 @@
       if (!ctx->remaining) {
           switch (ctx->state) {
           case BODY_NONE:
  +            if (f->r->proxyreq != PROXYREQ_RESPONSE) {
  +                e = apr_bucket_eos_create(f->c->bucket_alloc);
  +                APR_BRIGADE_INSERT_TAIL(b, e);
  +                return APR_SUCCESS;
  +            }
               break;
           case BODY_LENGTH:
               e = apr_bucket_eos_create(f->c->bucket_alloc);
  
  
  

Mime
View raw message