Skip to content

Commit 0fb116c

Browse files
jajikjfclere
andcommitted
Add address_ttl and disablereuse initialization for worker
Resolves https://issues.redhat.com/browse/MODCLUSTER-852 Co-Authored-By: Jean-Frederic Clere <jfclere@gmail.com>
1 parent 18229dc commit 0fb116c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

native/mod_proxy_cluster/mod_proxy_cluster.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,11 @@ static void create_worker_arrange_shared_mem(proxy_server_conf *conf, proxy_work
450450
worker->s->keepalive = 1;
451451
worker->s->keepalive_set = 1;
452452
worker->s->is_address_reusable = 1;
453+
#if AP_MODULE_MAGIC_AT_LEAST(20120211, 130)
454+
worker->s->address_ttl = 60; /* DNS will reload after 60 sec */
455+
worker->s->address_ttl_set = 1;
456+
worker->s->disablereuse = 0;
457+
#endif
453458
worker->s->acquire = apr_time_make(0, 2 * 1000); /* 2 ms */
454459
worker->s->retry = apr_time_from_sec(PROXY_WORKER_DEFAULT_RETRY);
455460

0 commit comments

Comments
 (0)