You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2017/11/06 19:58:54 UTC
[trafficserver] branch 7.1.x updated: Added stop and close to else
in failover to close a single configured connection on failover.
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/7.1.x by this push:
new e6bb7c2 Added stop and close to else in failover to close a single configured connection on failover.
e6bb7c2 is described below
commit e6bb7c22745f1f6c97d34615bc37cb0502733a57
Author: Steven Feltner <sf...@godaddy.com>
AuthorDate: Mon Oct 23 11:46:49 2017 -0400
Added stop and close to else in failover to close a single configured connection on failover.
---
iocore/dns/DNS.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/iocore/dns/DNS.cc b/iocore/dns/DNS.cc
index 5c1522a..b77b190 100644
--- a/iocore/dns/DNS.cc
+++ b/iocore/dns/DNS.cc
@@ -645,6 +645,8 @@ DNSHandler::failover()
switch_named(name_server);
} else {
ip_text_buffer buff;
+ con[name_server].eio.stop();
+ con[name_server].close();
Warning("failover: connection to DNS server %s lost, retrying", ats_ip_ntop(&ip.sa, buff, sizeof(buff)));
}
}
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].