]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Only insert net_filter once per request. Initialize the output
authorRyan Bloom <rbb@apache.org>
Tue, 5 Mar 2002 05:24:21 +0000 (05:24 +0000)
committerRyan Bloom <rbb@apache.org>
Tue, 5 Mar 2002 05:24:21 +0000 (05:24 +0000)
protocol filters.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93709 13f79535-47bb-0310-9956-ffa450edef68

server/core.c
server/request.c

index 73c8d06e98bb25b159e4464f3ee0a45eebf28be9..fa5046ad4888b818f91ccbecad65cd22c0262632 100644 (file)
@@ -3772,8 +3772,10 @@ static int core_create_req(request_rec *r)
     }
     else {
         req_cfg->bb = apr_brigade_create(r->pool);
+       if (!r->prev) {
         ap_add_input_filter_handle(ap_net_time_filter_handle,
                                    NULL, r, r->connection);
+       }
     }
     ap_set_module_config(r->request_config, &core_module, req_cfg);
 
index 86d78cade6626de144c95588130f94b4998aeccc..0a7e0b55d17f983529ebff1362d0aa8bc3deb52f 100644 (file)
@@ -1499,6 +1499,7 @@ static request_rec *make_sub_request(const request_rec *r,
         rnew->input_filters  = r->input_filters;
         rnew->proto_input_filters  = r->proto_input_filters;
         rnew->output_filters = next_filter;
+       rnew->proto_output_filters = r->connection->output_filters;
         ap_add_output_filter_handle(ap_subreq_core_filter_handle,
                                     NULL, rnew, rnew->connection); 
     }