httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/main http_core.c
Date Wed, 25 Oct 2000 00:38:05 GMT
trawick     00/10/24 17:38:04

  Modified:    src/include util_filter.h
               src/main http_core.c
  Log:
  Introduce more filter types.  This gets chunking of output working
  again by ensuring that the chunk filter gets added after the http
  headers filter.
  
  Revision  Changes    Path
  1.30      +5 -2      apache-2.0/src/include/util_filter.h
  
  Index: util_filter.h
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/include/util_filter.h,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- util_filter.h	2000/10/21 17:22:26	1.29
  +++ util_filter.h	2000/10/25 00:38:03	1.30
  @@ -182,8 +182,11 @@
    * the ordering is equivalent to the order of calls to ap_add_*_filter().
    */
   typedef enum {
  -    AP_FTYPE_CONTENT,
  -    AP_FTYPE_CONNECTION
  +    AP_FTYPE_CONTENT     = 10,
  +    AP_FTYPE_HTTP_HEADER = 20,
  +    AP_FTYPE_TRANSCODE   = 30,
  +    AP_FTYPE_CONNECTION  = 40,
  +    AP_FTYPE_NETWORK     = 50
   } ap_filter_type;
   
   /*
  
  
  
  1.185     +5 -5      apache-2.0/src/main/http_core.c
  
  Index: http_core.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/http_core.c,v
  retrieving revision 1.184
  retrieving revision 1.185
  diff -u -r1.184 -r1.185
  --- http_core.c	2000/10/24 17:21:41	1.184
  +++ http_core.c	2000/10/25 00:38:04	1.185
  @@ -3577,13 +3577,13 @@
        */
       ap_hook_insert_filter(core_insert_filter, NULL, NULL, AP_HOOK_MIDDLE);
       ap_register_input_filter("HTTP_IN", ap_http_filter, AP_FTYPE_CONNECTION);
  -    ap_register_input_filter("DECHUNK", ap_dechunk_filter, AP_FTYPE_CONNECTION + 1);
  -    ap_register_input_filter("CORE_IN", core_input_filter, AP_FTYPE_CONNECTION);
  -    ap_register_output_filter("HTTP_HEADER", ap_http_header_filter, AP_FTYPE_CONTENT -
1);
  -    ap_register_output_filter("CORE", core_output_filter, AP_FTYPE_CONNECTION + 1);
  +    ap_register_input_filter("DECHUNK", ap_dechunk_filter, AP_FTYPE_TRANSCODE);
  +    ap_register_input_filter("CORE_IN", core_input_filter, AP_FTYPE_NETWORK);
  +    ap_register_output_filter("HTTP_HEADER", ap_http_header_filter, AP_FTYPE_HTTP_HEADER);
  +    ap_register_output_filter("CORE", core_output_filter, AP_FTYPE_NETWORK);
       ap_register_output_filter("SUBREQ_CORE", ap_sub_req_output_filter, 
                                 AP_FTYPE_CONTENT);
  -    ap_register_output_filter("CHUNK", chunk_filter, AP_FTYPE_CONNECTION);
  +    ap_register_output_filter("CHUNK", chunk_filter, AP_FTYPE_TRANSCODE);
       ap_register_output_filter("COALESCE", coalesce_filter, AP_FTYPE_CONNECTION);
   }
   
  
  
  

Mime
View raw message