From: Jim Jagielski Date: Mon, 18 Nov 2013 21:37:05 +0000 (+0000) Subject: Correct logic... if this is a UDS socket, then bypass all X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=795632f439dd8066ba05791d00d36c7cd1e612df;p=thirdparty%2Fapache%2Fhttpd.git Correct logic... if this is a UDS socket, then bypass all this. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1543174 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index bd9048ad07a..f67e0a7ae2c 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -2191,8 +2191,9 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r, * to check host and port on the conn and be careful about * spilling the cached addr from the worker. */ - if (!conn->hostname || !worker->s->is_address_reusable || - worker->s->disablereuse || *worker->s->uds_path) { + if (!(*worker->s->uds_path) && + (!conn->hostname || !worker->s->is_address_reusable || + worker->s->disablereuse)) { if (proxyname) { conn->hostname = apr_pstrdup(conn->pool, proxyname); conn->port = proxyport;