mod_proxy_balancer: follow up tp r1822509.
authorYann Ylavic <ylavic@apache.org>
Thu, 8 Feb 2018 15:08:09 +0000 (15:08 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 8 Feb 2018 15:08:09 +0000 (15:08 +0000)
commitfad6cd0e46bf2ec10f58dc0335b80e12ecf9f16e
tree58f228514c6939e659c7c7129a1263220d723b49
parenta7c10a97f44b3b73abd7ee4eaaf8d74f9469ea87
mod_proxy_balancer: follow up tp r1822509.

Rework server_rec ID so that it doesn't change on restart (or stop/start)
unless it's Host(s)/IP(s):port(s), ServerName and/or ServerAlias(es) changed.

The goal being to reuse SHMs (and persisted files) names as much as possible,
with minimal bindings to configuration changes (as far as mod_proxy_balancer
is concerned). So if the ServerName and first Host/IP:port are unique we use
that first, otherwise the ServerAlias(es) and other Host(s)/IP(s):port(s) are
also taken into account, and finally if that's still not enough the server
index is also used (pathological case handled for correctness with regard to
the underlying mod_slotmem_shm's reuse code).

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