httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject cvs commit: httpd-2.0/modules/http http_protocol.c
Date Fri, 01 Jun 2001 22:14:04 GMT
minfrin     01/06/01 15:14:03

  Modified:    .        CHANGES
               modules/http http_protocol.c
  Log:
  Optimise reset_filter() in http_protocol.c
  Submitted by:	Greg Stein
  
  Revision  Changes    Path
  1.212     +2 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.211
  retrieving revision 1.212
  diff -u -r1.211 -r1.212
  --- CHANGES	2001/06/01 17:35:04	1.211
  +++ CHANGES	2001/06/01 22:13:58	1.212
  @@ -1,5 +1,7 @@
   Changes with Apache 2.0.19-dev
   
  +  *) Optimise reset_filter() in http_protocol.c. [Greg Stein]
  +
     *) Add a check to ap_die() to make sure the filter stack is sane and
        contains the correct basic filters when an error occurs. This fixes
        a problem where headers are not being sent on error. [John Sterling]
  
  
  
  1.322     +4 -14     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.321
  retrieving revision 1.322
  diff -u -r1.321 -r1.322
  --- http_protocol.c	2001/05/17 18:04:18	1.321
  +++ http_protocol.c	2001/06/01 22:14:01	1.322
  @@ -1745,20 +1745,10 @@
   
   static void reset_filters(request_rec *r)
   {
  -    ap_filter_t *f = r->output_filters;
  -
  -    while (f) {
  -        if (!strcasecmp(f->frec->name, "CORE") ||
  -            !strcasecmp(f->frec->name, "CONTENT_LENGTH") ||
  -            !strcasecmp(f->frec->name, "HTTP_HEADER")) {
  -            f = f->next;
  -            continue;
  -        }
  -        else {
  -            ap_remove_output_filter(f);
  -            f = f->next;
  -        }
  -    }
  +    r->output_filters = NULL;
  +    ap_add_output_filter("CORE", NULL, r, r->connection);
  +    ap_add_output_filter("CONTENT_LENGTH", NULL, r, r->connection);
  +    ap_add_output_filter("HTTP_HEADER", NULL, r, r->connection);
   }
   
   /* We should have named this send_canned_response, since it is used for any
  
  
  

Mime
View raw message