summaryrefslogtreecommitdiffstats
path: root/modules/http/http_core.c
diff options
context:
space:
mode:
authorRuediger Pluem <rpluem@apache.org>2005-12-18 23:09:05 +0100
committerRuediger Pluem <rpluem@apache.org>2005-12-18 23:09:05 +0100
commit90089065b62d05631f15e27c211a8504f90fbf96 (patch)
tree0caaf7660fc464c07ff46a8d2907289e9c8e242f /modules/http/http_core.c
parent* If the mod_proxy backend connection broke in the middle of the response, (diff)
downloadapache2-90089065b62d05631f15e27c211a8504f90fbf96.tar.xz
apache2-90089065b62d05631f15e27c211a8504f90fbf96.zip
* Move code for broken backend detection out of core filter into a new http
protocol filter (ap_http_broken_backend_filter) that is only run in the proxy case. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@357519 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/http/http_core.c')
-rw-r--r--modules/http/http_core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/http/http_core.c b/modules/http/http_core.c
index 14d8a1b598..b939967e6e 100644
--- a/modules/http/http_core.c
+++ b/modules/http/http_core.c
@@ -39,6 +39,7 @@
AP_DECLARE_DATA ap_filter_rec_t *ap_http_input_filter_handle;
AP_DECLARE_DATA ap_filter_rec_t *ap_http_header_filter_handle;
AP_DECLARE_DATA ap_filter_rec_t *ap_chunk_filter_handle;
+AP_DECLARE_DATA ap_filter_rec_t *ap_broken_backend_filter_handle;
AP_DECLARE_DATA ap_filter_rec_t *ap_byterange_filter_handle;
static const char *set_keep_alive_timeout(cmd_parms *cmd, void *dummy,
@@ -242,6 +243,10 @@ static void register_hooks(apr_pool_t *p)
ap_chunk_filter_handle =
ap_register_output_filter("CHUNK", ap_http_chunk_filter,
NULL, AP_FTYPE_TRANSCODE);
+ ap_broken_backend_filter_handle =
+ ap_register_output_filter("BROKEN_BACKEND",
+ ap_http_broken_backend_filter,
+ NULL, AP_FTYPE_PROTOCOL);
ap_byterange_filter_handle =
ap_register_output_filter("BYTERANGE", ap_byterange_filter,
NULL, AP_FTYPE_PROTOCOL);