]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r314844, r320796 from trunk:
authorJoe Orton <jorton@apache.org>
Thu, 13 Oct 2005 16:56:29 +0000 (16:56 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 13 Oct 2005 16:56:29 +0000 (16:56 +0000)
* support/ab.c (test): Increment count of started requests when a
non-blocking connect completes; avoids case where more requests are
made than intended.

* modules/ssl/ssl_engine_init.c (ssl_init_CheckServers): Fix IP/port
key generation which passed a bogus pointer for a %pA conversion,
hence could give false warnings for name-based-vhost use.

PR: 36966, 37051

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@320804 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/ssl/ssl_engine_init.c
support/ab.c

diff --git a/CHANGES b/CHANGES
index 0a2c81a5f678548ff1c4091b258e9cc7b12f9355..4adb12eb2ddbee15b267213da73c9aa1de92af6f 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,12 @@
                                                         -*- coding: utf-8 -*-
 Changes with Apache 2.1.9
 
+  *) mod_ssl: Fix issue which could cause spurious warnings about use
+     of name-based vhosts.  PR 37051.  [Joe Orton]
+
+  *) ab: Fix to ensure that only the expected number of requests are run.
+     PR 36966.  [Joe Orton]
+
   *) mod_proxy_balancer: BalancerManager and proxies correctly handle
      member workers with paths. PR36816. [Ruediger Pluem, Jim Jagielski]
 
index 0a545909d3d404223dc5c0af93de4d1107840a3a..e820ec1d4861a28be4dc5d261d149471ce3eccdb 100644 (file)
@@ -1044,14 +1044,16 @@ void ssl_init_CheckServers(server_rec *base_server, apr_pool_t *p)
     table = apr_hash_make(p);
 
     for (s = base_server; s; s = s->next) {
+        char *addr;
+
         sc = mySrvConfig(s);
 
         if (!((sc->enabled == SSL_ENABLED_TRUE) && s->addrs)) {
             continue;
         }
 
-        key = apr_psprintf(p, "%pA:%u",
-                           &s->addrs->host_addr, s->addrs->host_port);
+        apr_sockaddr_ip_get(&addr, s->addrs->host_addr);
+        key = apr_psprintf(p, "%s:%u", addr, s->addrs->host_port);
         klen = strlen(key);
 
         if ((ps = (server_rec *)apr_hash_get(table, key, klen))) {
index 50c15476cfe4169bf1a677eadc2770fb0f253862..b8c2d4192c82f7f72b77dd63b893da3f311e4380 100644 (file)
@@ -1681,6 +1681,7 @@ static void test(void)
                     }
                     else {
                         c->state = STATE_CONNECTED;
+                        started++;
 #ifdef USE_SSL
                         if (c->ssl)
                             ssl_proceed_handshake(c);