mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
proxy: add local address to body-forwarding errors
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
This commit is contained in:
@@ -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: "");
|
||||
|
Reference in New Issue
Block a user