]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mod_proxy: Keep connection alive on addressTTL expiry if the DNS didn't change.
authorYann Ylavic <ylavic@apache.org>
Tue, 18 Jun 2024 14:20:06 +0000 (14:20 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 18 Jun 2024 14:20:06 +0000 (14:20 +0000)
commit7e45e25300d3f277e38bf51eea7950f98c18b688
tree2e326b112006c6f2df2ae0aec91bbafeffdf602b
parent4c8d57159539ce7a7e5ed3a8cac99b2346f6636e
mod_proxy: Keep connection alive on addressTTL expiry if the DNS didn't change.

* modules/proxy/proxy_util.c(address_cleanup):
  Rename to conn_cleanup() since it also closes the socket, and run
  socket_cleanup() first to avoid dangling conn->sock->remote_addr.

* modules/proxy/proxy_util.c(ap_proxy_determine_address):
  Compare the new address with the old one and keep the socket alive
  if it did not change.

Follow up to r1918410.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918412 13f79535-47bb-0310-9956-ffa450edef68
modules/proxy/proxy_util.c