httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@apache.org
Subject cvs commit: httpd-2.0/modules/http http_protocol.c
Date Mon, 08 Oct 2001 20:12:50 GMT
gstein      01/10/08 13:12:50

  Modified:    modules/http http_protocol.c
  Log:
  HTTP_IN was attempting to process the PEEK mode. This threw off
  check_pipeline_flush(), making it think another request was available (when
  it wasn't). Apache would avoid flushing the prior request and block on
  reading the next request. (of course, the client wasn't sending the next
  one, cuz it was still waiting for the results of the first one)
  
  Revision  Changes    Path
  1.370     +4 -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.369
  retrieving revision 1.370
  diff -u -r1.369 -r1.370
  --- http_protocol.c	2001/10/02 21:13:41	1.369
  +++ http_protocol.c	2001/10/08 20:12:50	1.370
  @@ -501,6 +501,10 @@
       http_ctx_t *ctx = f->ctx;
       apr_status_t rv;
   
  +    /* just get out of the way of this thing. */
  +    if (mode == AP_MODE_PEEK)
  +        return ap_get_brigade(f->next, b, mode, readbytes);
  +
       if (!ctx) {
           const char *tenc, *lenp;
           f->ctx = ctx = apr_palloc(f->r->pool, sizeof(*ctx));
  
  
  

Mime
View raw message