]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
proxy: add local address to body-forwarding errors
authorEric Covener <covener@apache.org>
Sun, 12 Jan 2020 12:56:12 +0000 (12:56 +0000)
committerEric Covener <covener@apache.org>
Sun, 12 Jan 2020 12:56:12 +0000 (12:56 +0000)
Adds the local/ephemeral port for the backend connection

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

modules/proxy/mod_proxy_http.c

index c635961644fe6d8025b7b7306683aac5536eb384..c6d559d98fa425f96e8bad7e55b5a60a5aa41eef 100644 (file)
@@ -674,8 +674,9 @@ static int ap_proxy_http_prefetch(proxy_http_req_t *req,
         }
         if (status != APR_SUCCESS) {
             ap_log_rerror(APLOG_MARK, APLOG_ERR, status, r, APLOGNO(01095)
-                          "prefetch request body failed to %pI (%s)"
+                          "prefetch request body failed to %pI<>%pI (%s)"
                           " from %s (%s)",
+                          p_conn->connection->local_addr,
                           p_conn->addr, p_conn->hostname ? p_conn->hostname: "",
                           c->client_ip, c->remote_host ? c->remote_host: "");
             return ap_map_http_request_error(status, HTTP_BAD_REQUEST);
@@ -883,7 +884,8 @@ static int ap_proxy_http_request(proxy_http_req_t *req)
         conn_rec *c = r->connection;
         /* apr_status_t value has been logged in lower level method */
         ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01097)
-                      "pass request body failed to %pI (%s) from %s (%s)",
+                      "pass request body failed to %pI<>%pI (%s) from %s (%s)",
+                      req->origin->local_addr,
                       req->backend->addr,
                       req->backend->hostname ? req->backend->hostname: "",
                       c->client_ip, c->remote_host ? c->remote_host: "");