Skip to content

[2.4.x] mod_proxy_hcheck: Fix healthcheck disabled due to child restart while updating#581

Closed
ylavic wants to merge 2 commits into
apache:2.4.xfrom
ylavic:proxy_hcheck_updated-2.4.x
Closed

[2.4.x] mod_proxy_hcheck: Fix healthcheck disabled due to child restart while updating#581
ylavic wants to merge 2 commits into
apache:2.4.xfrom
ylavic:proxy_hcheck_updated-2.4.x

Conversation

@ylavic
Copy link
Copy Markdown
Member

@ylavic ylavic commented Nov 26, 2025

No description provided.

… updating

When a child gets restarted while the healthcheck watchdog running for a
worker, the healcheck will be disabled for that worker indefinitively because
its ->updated time remains zero. Fix all zero ->updated time at startup.

* mod_proxy_hcheck.c(hc_watchdog_callback):
  Have AP_WATCHDOG_STATE_STARTING set the ->updated time of all the workers to
  "now" (if zero).
  Move up scoped variables common to AP_WATCHDOG_STATE_{STARTING,RUNNING}
  loops.

Reported by: Lubos Uhliarik <luhliari redhat.com>



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1929972 13f79535-47bb-0310-9956-ffa450edef68
asf-gitbox-commits pushed a commit that referenced this pull request May 1, 2026
mod_proxy_hcheck: Fix healthcheck disabled due to child restart while updating

When a child gets restarted while the healthcheck watchdog running for a
worker, the healcheck will be disabled for that worker indefinitively because
its ->updated time remains zero. Fix all zero ->updated time at startup.

* mod_proxy_hcheck.c(hc_watchdog_callback):
  Have AP_WATCHDOG_STATE_STARTING set the ->updated time of all the workers to
  "now" (if zero).
  Move up scoped variables common to AP_WATCHDOG_STATE_{STARTING,RUNNING}
  loops.

Reported by: Lubos Uhliarik <luhliari redhat.com>

Follow up to r1929972: CHANGES entry.

Submitted by: ylavic
Reviewed by: ylavic, rpluem, jorton
Github: closes #581


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1933633 13f79535-47bb-0310-9956-ffa450edef68
@notroj notroj closed this May 1, 2026
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.

2 participants