]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mod_proxy_http2: thread safety with MPM prefork, still..
authorYann Ylavic <ylavic@apache.org>
Sat, 21 Nov 2020 23:23:04 +0000 (23:23 +0000)
committerYann Ylavic <ylavic@apache.org>
Sat, 21 Nov 2020 23:23:04 +0000 (23:23 +0000)
commitc49dadf6a2ba36f60769f729e4843e2e433b06b7
tree900ca443156b8afd975dee1c8785f5b9783330de
parente8ad19e9871f4c584202b32ac985442d4c359ee4
mod_proxy_http2: thread safety with MPM prefork, still..

The allocator of pchild has no mutex with MPM prefork, but we need one
for h2 workers threads synchronization.

Even though mod_http2 shouldn't be used with prefork, better be safe than
sorry, so forcibly set the mutex in h2_child_init() if it doesn't exist.

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