/[Apache-SVN]
ViewVC logotype

Revision 1885691


Jump to revision: Previous Next
Author: ylavic
Date: Tue Jan 19 14:16:44 2021 UTC (3 years, 3 months ago)
Changed paths: 2
Log Message:
mod_proxy_hcheck: don't pile up health checks.  PR 63010.

Prevent health checks from running for a worker until the last one is fully
finished, to avoid making things worse (memory growth, #connections, ..).

This is done by zeroing worker->s->updated before scheduling the worker in the
threadpool, and resetting the time when it's finished. The scheduler then does
nothing if worker->s->updated is zero.

Also, to save some apr_time_now() calls when !HC_USE_THREADS, *baton->now is
updated in the callback and reused by the scheduler.


Changed paths

Path Details
Directoryhttpd/httpd/trunk/changes-entries/proxy_hcheck_concurrent.txt added
Directoryhttpd/httpd/trunk/modules/proxy/mod_proxy_hcheck.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26