From: Doug MacEachern Date: Tue, 2 Apr 2002 04:30:49 +0000 (+0000) Subject: PR: X-Git-Tag: 2.0.35~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf7be3d0b6232aa638da328478d8c5e3c7fdde15;p=apache PR: Obtained from: Submitted by: Reviewed by: Ryan Bloom remove call to ap_proxy_reset_output_filters() and the function itself. this call breaks ssl proxy when the client is using keepalives. this function is also no longer needed with recent-ish filter changes. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94383 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy.h b/modules/proxy/mod_proxy.h index ccd6b1c35a..1e0fc79ccd 100644 --- a/modules/proxy/mod_proxy.h +++ b/modules/proxy/mod_proxy.h @@ -271,7 +271,6 @@ PROXY_DECLARE(int) ap_proxy_is_word(struct dirconn_entry *This, apr_pool_t *p); PROXY_DECLARE(int) ap_proxy_checkproxyblock(request_rec *r, proxy_server_conf *conf, apr_sockaddr_t *uri_addr); PROXY_DECLARE(int) ap_proxy_pre_http_request(conn_rec *c, request_rec *r); PROXY_DECLARE(apr_status_t) ap_proxy_string_read(conn_rec *c, apr_bucket_brigade *bb, char *buff, size_t bufflen, int *eos); -PROXY_DECLARE(void) ap_proxy_reset_output_filters(conn_rec *c); PROXY_DECLARE(void) ap_proxy_table_unmerge(apr_pool_t *p, apr_table_t *t, char *key); PROXY_DECLARE(int) ap_proxy_connect_to_backend(apr_socket_t **, const char *, apr_sockaddr_t *, const char *, proxy_server_conf *, server_rec *, apr_pool_t *); PROXY_DECLARE(int) ap_proxy_ssl_enable(conn_rec *c); diff --git a/modules/proxy/proxy_http.c b/modules/proxy/proxy_http.c index 75a8d613af..3719b5b007 100644 --- a/modules/proxy/proxy_http.c +++ b/modules/proxy/proxy_http.c @@ -326,9 +326,6 @@ apr_status_t ap_proxy_http_create_connection(apr_pool_t *p, request_rec *r, p_conn->sock = client_socket; new = 0; - /* reset the connection filters */ - ap_proxy_reset_output_filters(*origin); - /* save timeout */ apr_getsocketopt(p_conn->sock, APR_SO_TIMEOUT, ¤t_timeout); /* set no timeout */ diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index 4fc1a958c4..938df235e7 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -1062,25 +1062,6 @@ PROXY_DECLARE(apr_status_t) ap_proxy_string_read(conn_rec *c, apr_bucket_brigade return APR_SUCCESS; } -/* remove other filters (like DECHUNK) from filter stack */ -PROXY_DECLARE(void) ap_proxy_reset_output_filters(conn_rec *c) -{ - ap_filter_t *f = c->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; - } - } -} - /* unmerge an element in the table */ PROXY_DECLARE(void) ap_proxy_table_unmerge(apr_pool_t *p, apr_table_t *t, char *key) {