summaryrefslogtreecommitdiffstats
path: root/server/scoreboard.c
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 /server/scoreboard.c
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 'server/scoreboard.c')
-rw-r--r--server/scoreboard.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/scoreboard.c b/server/scoreboard.c
index 0831b6351c..4ecaf05c21 100644
--- a/server/scoreboard.c
+++ b/server/scoreboard.c
@@ -490,6 +490,8 @@ static int update_child_status_internal(int child_num,
else if (c) {
apr_cpystrn(ws->client, ap_get_remote_host(c, NULL,
REMOTE_NOLOOKUP, NULL), sizeof(ws->client));
+ ws->request[0]='\0';
+ ws->vhost[0]='\0';
}
}