Skip to content

[2.4.x] mod_proxy_balancer: Set up the balancers before the watchdogs start - #1145

Open
jimjag wants to merge 1 commit into
apache:2.4.xfrom
jimjag:backport-balancer-before-watchdog
Open

jimjag wants to merge 1 commit into
apache:2.4.xfrom
jimjag:backport-balancer-before-watchdog

Conversation

@jimjag

@jimjag jimjag commented Dec 1, 2026

Copy link
Copy Markdown
Member

With the default module order, mod_watchdog's child_init runs before mod_proxy_balancer's, so mod_proxy_hcheck's watchdog can start walking the balancers before they are set up in the child. With #994 that walk takes the balancer's thread mutex, which is not created yet then. balancer_child_init() now names mod_watchdog.c as a successor.

The test, test_proxy_14_04 in test_14_watchdog_pools.py (trunk 1b63b67), is not included: that file comes to 2.4.x with #994, which has the test marked not_backported until this is merged.

Trunk: 0397066

mod_watchdog's child_init ran first, so mod_proxy_hcheck's watchdog could
walk a balancer whose thread mutex was not created yet.

(cherry picked from commit 0397066)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant