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_request.c
Date Fri, 19 Jan 2001 17:19:53 GMT
rbb         01/01/19 09:19:53

  Modified:    .        CHANGES
               modules/http http_request.c
  Log:
  Stop checking to see if this is a pipelined request if we know
  for a fact that it isn't.  Basically, if r->connection->keepalive == 0.
  This keeps us from making an extra read call when serving a 1.0
  request.
  Submitted by:	  Ryan Bloom and Greg Stein
  
  Revision  Changes    Path
  1.44      +5 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- CHANGES	2001/01/18 22:36:57	1.43
  +++ CHANGES	2001/01/19 17:19:49	1.44
  @@ -1,5 +1,10 @@
   Changes with Apache 2.0b1
   
  +  *) Stop checking to see if this is a pipelined request if we know
  +     for a fact that it isn't.  Basically, if r->connection->keepalive == 0.
  +     This keeps us from making an extra read call when serving a 1.0
  +     request.  [Ryan Bloom and Greg Stein]
  +
     *) Fix the handling of variable expansion look-ahead in mod_rewrite,
        i.e. syntax like %{LA-U:REMOTE_USER}, and also fix the parsing of
        more complicated nested RewriteMap lookups. PR#7087 [Tony Finch]
  
  
  
  1.75      +2 -1      httpd-2.0/modules/http/http_request.c
  
  Index: http_request.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/http/http_request.c,v
  retrieving revision 1.74
  retrieving revision 1.75
  diff -u -r1.74 -r1.75
  --- http_request.c	2001/01/19 07:04:21	1.74
  +++ http_request.c	2001/01/19 17:19:51	1.75
  @@ -1357,7 +1357,8 @@
   static void check_pipeline_flush(request_rec *r)
   {
       apr_bucket_brigade *bb = apr_brigade_create(r->pool);
  -    if (ap_get_brigade(r->input_filters, bb, AP_MODE_PEEK) != APR_SUCCESS) {
  +    if (!r->connection->keepalive || 
  +        ap_get_brigade(r->input_filters, bb, AP_MODE_PEEK) != APR_SUCCESS) {
           apr_bucket *e = apr_bucket_create_flush();
   
           /* We just send directly to the connection based filters, because at
  
  
  

Mime
View raw message