]> granicus.if.org Git - apache/commitdiff
Add the port number to the vhost's name in the scoreboard
authorStefan Fritsch <sf@apache.org>
Mon, 27 Feb 2012 22:08:52 +0000 (22:08 +0000)
committerStefan Fritsch <sf@apache.org>
Mon, 27 Feb 2012 22:08:52 +0000 (22:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1294358 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
server/scoreboard.c

diff --git a/CHANGES b/CHANGES
index 9b7512573b99bcfb11e929853fb4b7f53df64b7b..c2e9afdcc771e1230dde3295d5f10b056616ac6e 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) core: Add the port number to the vhost's name in the scoreboard.
+     [Stefan Fritsch]
+
   *) mpm_event: Don't do a blocking write when starting a lingering close
      from the listener thread. PR 52229. [Stefan Fritsch]
 
index 42019955c08f2b2c994fa27fb632386dca069ffa..1a6a9844bc690c00e07c521fe6fe26065be1fb59 100644 (file)
@@ -487,8 +487,9 @@ static int update_child_status_internal(int child_num,
                         REMOTE_NOLOOKUP, NULL), sizeof(ws->client));
             copy_request(ws->request, sizeof(ws->request), r);
             if (r->server) {
-                apr_cpystrn(ws->vhost, r->server->server_hostname,
-                            sizeof(ws->vhost));
+                apr_snprintf(ws->vhost, sizeof(ws->vhost), "%s:%d",
+                             r->server->server_hostname,
+                             r->connection->local_addr->port);
             }
         }
         else if (c) {