Correct logic... if this is a UDS socket, then bypass all
authorJim Jagielski <jim@apache.org>
Mon, 18 Nov 2013 21:37:05 +0000 (21:37 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 18 Nov 2013 21:37:05 +0000 (21:37 +0000)
this.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1543174 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_util.c

index bd9048ad07ad0c92365c82a90f6b9a2932a591e8..f67e0a7ae2c4ae43ee77f4920df5df900fc85dc5 100644 (file)
@@ -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;