]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Merge r1729929 from trunk:
authorJim Jagielski <jim@apache.org>
Wed, 2 Mar 2016 13:20:24 +0000 (13:20 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 2 Mar 2016 13:20:24 +0000 (13:20 +0000)
commit4b9d1e6edb1cbf7579b006df76634b91655e2b40
tree3d0afa0a13f867a34dbccce67960c4b38d75648b
parentcc6c8019d6d59d05d5daa919e9d07016546d3773
Merge r1729929 from trunk:

Introduce an ap_get_useragent_host() accessor to replace the old
ap_get_remote_host() in most applications, but preserve the original
behavior for all ap_get_remote_host() consumers (mostly, because we
don't have the request_rec in the first place, and also to avoid any
unintended consequences).

This accessor continues to store the remote_host of connection based
uesr agents within the conn_rec for optimization.  Only where some
other module modifies the useragent_addr will we perform a per-request
query of the remote_host.

(Fixed compilation issues noted by Ranier, applies to 2.4.x trunk,
modulo CHANGES and ap_mmn.h)

Submitted by: wrowe
Reviewed/backported by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1733281 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
STATUS
include/ap_mmn.h
include/http_core.h
include/httpd.h
server/core.c