summaryrefslogtreecommitdiffstats
path: root/modules/http
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2009-10-18 23:38:35 +0200
committerStefan Fritsch <sf@apache.org>2009-10-18 23:38:35 +0200
commit702b9ec34de714b20df972abb4b4606a031cebf2 (patch)
tree9bcad4991206339b864a60ffc9996525cf9034b5 /modules/http
parentActually use the whole buffer for reading. (diff)
downloadapache2-702b9ec34de714b20df972abb4b4606a031cebf2.tar.xz
apache2-702b9ec34de714b20df972abb4b4606a031cebf2.zip
Use the new ap_update_child_status_from_conn() to put the client IP into the
scoreboard (and show it in mod_status) as soon as we start reading the request. Empty the vhost and request fields in ap_update_child_status_from_conn so that mod_status does not display outdated data if the connection closes without the request being completely read. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@826530 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/http')
-rw-r--r--modules/http/http_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/http/http_core.c b/modules/http/http_core.c
index 5a3c7055e9..ae97d314c5 100644
--- a/modules/http/http_core.c
+++ b/modules/http/http_core.c
@@ -135,7 +135,7 @@ static int ap_process_http_async_connection(conn_rec *c)
AP_DEBUG_ASSERT(cs->state == CONN_STATE_READ_REQUEST_LINE);
while (cs->state == CONN_STATE_READ_REQUEST_LINE) {
- ap_update_child_status(c->sbh, SERVER_BUSY_READ, NULL);
+ ap_update_child_status_from_conn(c->sbh, SERVER_BUSY_READ, c);
if ((r = ap_read_request(c))) {
@@ -182,7 +182,7 @@ static int ap_process_http_sync_connection(conn_rec *c)
* until no requests are left or we decide to close.
*/
- ap_update_child_status(c->sbh, SERVER_BUSY_READ, NULL);
+ ap_update_child_status_from_conn(c->sbh, SERVER_BUSY_READ, c);
while ((r = ap_read_request(c)) != NULL) {
c->keepalive = AP_CONN_UNKNOWN;