httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/server util_filter.c
Date Tue, 18 Feb 2003 00:23:21 GMT
nd          2003/02/17 16:23:21

  Modified:    .        CHANGES
               server   util_filter.c
  Log:
  While processing filters on internal redirects, remember seen EOS
  buckets also in the request structure of the redirect issuer(s). This
  prevents filters (such as mod_deflate) to add garbage to the response,
  because ap_finalize_request_protocol won't send another EOS bucket then.
  
  PR: 14451
  
  Revision  Changes    Path
  1.1077    +7 -2      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.1076
  retrieving revision 1.1077
  diff -u -r1.1076 -r1.1077
  --- CHANGES	17 Feb 2003 07:04:50 -0000	1.1076
  +++ CHANGES	18 Feb 2003 00:23:20 -0000	1.1077
  @@ -2,6 +2,11 @@
   
     [Remove entries to the current 2.0 section below, when backported]
   
  +  *) While processing filters on internal redirects, remember seen EOS
  +     buckets also in the request structure of the redirect issuer(s). This
  +     prevents filters (such as mod_deflate) to add garbage to the response.
  +     PR 14451.  [André Malo]
  +
     *) Allow restart of httpd to occur even with syntax errors in the config
        file.  PR 16813.  [Justin Erenkrantz]
   
  @@ -20,8 +25,8 @@
     *) Allow apachectl to perform status with links and elinks as well.
        [Justin Erenkrantz]
   
  -  *) Fix segfault which occurred when a section in an included file was
  -     not closed. PR 17093.  [André Malo]
  +  *) Fix segfault which occurred when a section in an included configuration
  +     file was not closed. PR 17093.  [André Malo]
   
     *) Extend the SetEnvIf directive to capture subexpressions of the
        matched value.  [André Malo]
  
  
  
  1.95      +10 -0     httpd-2.0/server/util_filter.c
  
  Index: util_filter.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/util_filter.c,v
  retrieving revision 1.94
  retrieving revision 1.95
  diff -u -r1.94 -r1.95
  --- util_filter.c	3 Feb 2003 17:53:20 -0000	1.94
  +++ util_filter.c	18 Feb 2003 00:23:20 -0000	1.95
  @@ -536,6 +536,16 @@
                * get two EOS buckets on the same request.
                */
               next->r->eos_sent = 1;
  +
  +            /* remember the eos for internal redirects, too */
  +            if (next->r->prev) {
  +                request_rec *prev = next->r->prev;
  +
  +                while (prev) {
  +                    prev->eos_sent = 1;
  +                    prev = prev->prev;
  +                }
  +            }
           }
           return next->frec->filter_func.out_func(next, bb);
       }
  
  
  

Mime
View raw message