You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2020/01/12 12:56:13 UTC
svn commit: r1872673 - /httpd/httpd/trunk/modules/proxy/mod_proxy_http.c
Author: covener
Date: Sun Jan 12 12:56:12 2020
New Revision: 1872673
URL: http://svn.apache.org/viewvc?rev=1872673&view=rev
Log:
proxy: add local address to body-forwarding errors
Adds the local/ephemeral port for the backend connection
Modified:
httpd/httpd/trunk/modules/proxy/mod_proxy_http.c
Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_http.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_http.c?rev=1872673&r1=1872672&r2=1872673&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_http.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_http.c Sun Jan 12 12:56:12 2020
@@ -674,8 +674,9 @@ static int ap_proxy_http_prefetch(proxy_
}
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_h
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: "");