Skip to content

Commit 22a64be

Browse files
authored
Merge pull request #873 from jfclere/1.3.x
Fix for https://issues.redhat.com/browse/MODCLUSTER-852.
2 parents 29e0e75 + 169e385 commit 22a64be

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

native/mod_proxy_cluster/mod_proxy_cluster.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,11 @@ static apr_status_t create_worker(proxy_server_conf *conf, proxy_balancer *balan
380380
worker->s->keepalive = 1;
381381
worker->s->keepalive_set = 1;
382382
worker->s->is_address_reusable = 1;
383+
#if AP_MODULE_MAGIC_AT_LEAST(20120211,130)
384+
worker->s->address_ttl = 60; /* DNS will reload after 60 sec */
385+
worker->s->address_ttl_set = 1;
386+
worker->s->disablereuse = 0;
387+
#endif
383388
worker->s->acquire = apr_time_make(0, 2 * 1000); /* 2 ms */
384389
worker->s->retry = apr_time_from_sec(PROXY_WORKER_DEFAULT_RETRY);
385390
worker->s->status = 0;
@@ -462,6 +467,11 @@ static apr_status_t create_worker(proxy_server_conf *conf, proxy_balancer *balan
462467
ws_worker->s->keepalive = 1;
463468
ws_worker->s->keepalive_set = 1;
464469
ws_worker->s->is_address_reusable = 1;
470+
#if AP_MODULE_MAGIC_AT_LEAST(20120211,130)
471+
ws_worker->s->address_ttl = 60; /* DNS will reload after 60 sec */
472+
ws_worker->s->address_ttl_set = 1;
473+
ws_worker->s->disablereuse = 0;
474+
#endif
465475
ws_worker->s->acquire = apr_time_make(0, 2 * 1000); /* 2 ms */
466476
ws_worker->s->retry = apr_time_from_sec(PROXY_WORKER_DEFAULT_RETRY);
467477

0 commit comments

Comments
 (0)