]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mod_proxy: Allocate and pnitialize the workers and balancers on pconf.
authorYann Ylavic <ylavic@apache.org>
Thu, 21 Sep 2023 13:44:51 +0000 (13:44 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 21 Sep 2023 13:44:51 +0000 (13:44 +0000)
commit8eb0f9e25331297034b590c4354c2388bf8e4f1e
tree5fb0a92dae1d03ebb9a0fbc2ff219816b353e722
parent08cde3e5692cd9a4c8a274f0a67663c803d1ad08
mod_proxy: Allocate and pnitialize the workers and balancers on pconf.

On ungraceful restart, pchild might be destroyed without waiting for the MPM
threads, just before exit()ing but still there is a window where threads may
be using its data still.

Avoid possible exit path crashes by basing the workers/balancers on pconf,
which is not destroyed in children processes.

While at it, avoid the duplication of the generic "forward" worker for each
server(_rec), there can be a single instance like the generic "reverse"
worker.

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