From 0315a2d929ce26992fb1b24ed5093e9c9f7cfb0c Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Mon, 18 Nov 2013 21:37:05 +0000 Subject: [PATCH] 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 --- modules/proxy/proxy_util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index bd9048ad07..f67e0a7ae2 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;