]> granicus.if.org Git - pdns/commitdiff
also account for network latency when talking to hardcoded servers
authorbert hubert <bert.hubert@powerdns.com>
Wed, 25 Oct 2017 10:46:41 +0000 (12:46 +0200)
committerbert hubert <bert.hubert@powerdns.com>
Wed, 25 Oct 2017 10:46:41 +0000 (12:46 +0200)
pdns/syncres.cc

index 79253ecbca2cb73705e79b7c5abcba3d8523b91d..ed75e659f19f903c1094281c795a2137f12f8043 100644 (file)
@@ -536,6 +536,10 @@ int SyncRes::doResolve(const DNSName &qname, const QType &qtype, vector<DNSRecor
 
           boost::optional<Netmask> nm;
           res=asyncresolveWrapper(remoteIP, d_doDNSSEC, qname, qtype.getCode(), false, false, &d_now, nm, &lwr);
+
+          d_totUsec += lwr.d_usec;
+          accountAuthLatency(lwr.d_usec, remoteIP.sin4.sin_family);
+
           // filter out the good stuff from lwr.result()
           if (res == 1) {
             for(const auto& rec : lwr.d_records) {