Hi Daniel, On Thu, Apr 22, 2021 at 12:21 PM Daniel Ferradal <dferradal@xxxxxxxxxx> wrote: > > Is my approach correct? As with most initial approaches to a specific > scenario, this may very well be the case, which other approach do you > suggest? I think that it's missing in the code but can't think of a workaround. Does the attached patch working for you? Regards; Yann.
Index: modules/proxy/mod_proxy_hcheck.c =================================================================== --- modules/proxy/mod_proxy_hcheck.c (revision 1888249) +++ modules/proxy/mod_proxy_hcheck.c (working copy) @@ -491,10 +491,12 @@ static proxy_worker *hc_get_hcworker(sctx_t *ctx, hc->hash.def = hc->s->hash.def = ap_proxy_hashfunc(hc->s->name, PROXY_HASHFUNC_DEFAULT); hc->hash.fnv = hc->s->hash.fnv = ap_proxy_hashfunc(hc->s->name, PROXY_HASHFUNC_FNV); hc->s->port = port; - if (worker->s->conn_timeout_set) { - hc->s->conn_timeout_set = worker->s->conn_timeout_set; - hc->s->conn_timeout = worker->s->conn_timeout; - } + hc->s->conn_timeout_set = worker->s->conn_timeout_set; + hc->s->conn_timeout = worker->s->conn_timeout; + hc->s->ping_timeout_set = worker->s->ping_timeout_set; + hc->s->ping_timeout = worker->s->ping_timeout; + hc->s->timeout_set = worker->s->timeout_set; + hc->s->timeout = worker->s->timeout; /* Do not disable worker in case of errors */ hc->s->status |= PROXY_WORKER_IGNORE_ERRORS; /* Mark as the "generic" worker */
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx