From: Joe Orton Date: Thu, 13 Oct 2005 16:56:29 +0000 (+0000) Subject: Merge r314844, r320796 from trunk: X-Git-Tag: 2.1.9~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfe1625fefb8daec6f11507c98440d39bfb65435;p=thirdparty%2Fapache%2Fhttpd.git Merge r314844, r320796 from trunk: * 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 --- diff --git a/CHANGES b/CHANGES index 0a2c81a5f67..4adb12eb2dd 100644 --- 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] diff --git a/modules/ssl/ssl_engine_init.c b/modules/ssl/ssl_engine_init.c index 0a545909d3d..e820ec1d486 100644 --- a/modules/ssl/ssl_engine_init.c +++ b/modules/ssl/ssl_engine_init.c @@ -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))) { diff --git a/support/ab.c b/support/ab.c index 50c15476cfe..b8c2d4192c8 100644 --- a/support/ab.c +++ b/support/ab.c @@ -1681,6 +1681,7 @@ static void test(void) } else { c->state = STATE_CONNECTED; + started++; #ifdef USE_SSL if (c->ssl) ssl_proceed_handshake(c);