]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge of r1862014 from trunk:
authorStefan Eissing <icing@apache.org>
Thu, 18 Jul 2019 13:58:11 +0000 (13:58 +0000)
committerStefan Eissing <icing@apache.org>
Thu, 18 Jul 2019 13:58:11 +0000 (13:58 +0000)
  *) mod_proxy_hcheck fix for BZ 60948

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1863318 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_hcheck.c

index dd8e407176417b078cc646c46bb1579051100608..0d0ad997e781d31bd3fd9d20a6b996b6d68496b2 100644 (file)
@@ -483,6 +483,10 @@ static proxy_worker *hc_get_hcworker(sctx_t *ctx, proxy_worker *worker,
         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;
+        }
         /* Do not disable worker in case of errors */
         hc->s->status |= PROXY_WORKER_IGNORE_ERRORS;
         /* Mark as the "generic" worker */