altarch-user / rpms / httpd

Forked from rpms/httpd 2 years ago
Clone

Blame SOURCES/httpd-2.4.6-r1650655.patch

008793
diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c
008793
index c37a09b..2121892 100644
008793
--- a/modules/proxy/proxy_util.c
008793
+++ b/modules/proxy/proxy_util.c
008793
@@ -1733,6 +1733,9 @@ PROXY_DECLARE(char *) ap_proxy_define_worker(apr_pool_t *p,
008793
 
008793
     memset(wshared, 0, sizeof(proxy_worker_shared));
008793
 
008793
+    if (uri.port && uri.port == ap_proxy_port_of_scheme(uri.scheme)) {
008793
+        uri.port = 0;
008793
+    }
008793
     ptr = apr_uri_unparse(p, &uri, APR_URI_UNP_REVEALPASSWORD);
008793
     if (PROXY_STRNCPY(wshared->name, ptr) != APR_SUCCESS) {
008793
         return apr_psprintf(p, "worker name (%s) too long", ptr);
008793
@@ -2688,6 +2691,13 @@ PROXY_DECLARE(int) ap_proxy_connect_backend(const char *proxy_function,
008793
                              worker->s->hostname);
008793
                 break;
008793
             }
008793
+
008793
+            ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(02823)
008793
+                         "%s: connection established with Unix domain socket "
008793
+                         "%s (%s)",
008793
+                         proxy_function,
008793
+                         conn->uds_path,
008793
+                         worker->s->hostname);
008793
         }
008793
         else
008793
 #endif
008793
@@ -2780,6 +2790,12 @@ PROXY_DECLARE(int) ap_proxy_connect_backend(const char *proxy_function,
008793
                 backend_addr = backend_addr->next;
008793
                 continue;
008793
             }
008793
+
008793
+            ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(02824)
008793
+                         "%s: connection established with %pI (%s)",
008793
+                         proxy_function,
008793
+                         backend_addr,
008793
+                         worker->s->hostname);
008793
         }
008793
 
008793
         /* Set a timeout on the socket */