summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2010-03-15 21:46:26 +0100
committerStefan Fritsch <sf@apache.org>2010-03-15 21:46:26 +0100
commit9a9bae6cd99d6200b3ff7b668024d587ffb56253 (patch)
tree9e590cd4be6ef91aa1f92563ed4f4f2342c99d83
parentcore: shorten the wait time in ap_lingering_close() if the (diff)
downloadapache2-9a9bae6cd99d6200b3ff7b668024d587ffb56253.tar.xz
apache2-9a9bae6cd99d6200b3ff7b668024d587ffb56253.zip
get the socket with ap_get_module_config instead of walking the filter chain
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@923429 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--modules/filters/mod_reqtimeout.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/modules/filters/mod_reqtimeout.c b/modules/filters/mod_reqtimeout.c
index 0b7e3375c5..5048348238 100644
--- a/modules/filters/mod_reqtimeout.c
+++ b/modules/filters/mod_reqtimeout.c
@@ -151,21 +151,7 @@ static apr_status_t reqtimeout_filter(ap_filter_t *f,
}
if (!ccfg->socket) {
- core_net_rec *net_rec;
- ap_filter_t *core_in = f->next;
-
- while (core_in && core_in->frec != ap_core_input_filter_handle)
- core_in = core_in->next;
-
- if (!core_in) {
- ap_log_cerror(APLOG_MARK, APLOG_WARNING, 0, f->c,
- "mod_reqtimeout: Can't get socket "
- "handle from core_input_filter");
- ap_remove_input_filter(f);
- return ap_get_brigade(f->next, bb, mode, block, readbytes);
- }
- net_rec = core_in->ctx;
- ccfg->socket = net_rec->client_socket;
+ ccfg->socket = ap_get_module_config(f->c->conn_config, &core_module);
}
rv = check_time_left(ccfg, &time_left);