From: Chris Hofstaedtler Date: Tue, 6 Mar 2018 07:49:25 +0000 (+0100) Subject: Remove latency tracking for TCP again, for now X-Git-Tag: dnsdist-1.3.0~63^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1216612f4523543df07ecaceee2737b343a2d68f;p=pdns Remove latency tracking for TCP again, for now --- diff --git a/pdns/dnsdist-tcp.cc b/pdns/dnsdist-tcp.cc index 64d6f7751..3516c25e5 100644 --- a/pdns/dnsdist-tcp.cc +++ b/pdns/dnsdist-tcp.cc @@ -379,7 +379,6 @@ void* tcpClientThread(int pipefd) #endif handler.writeSizeAndMsg(query, dq.len, g_tcpSendTimeout); g_stats.selfAnswered++; - doLatencyStats(0); // we're not going to measure this continue; } @@ -426,7 +425,6 @@ void* tcpClientThread(int pipefd) } #endif handler.writeSizeAndMsg(cachedResponse, cachedResponseSize, g_tcpSendTimeout); - doLatencyStats(0); // we're not going to measure this g_stats.cacheHits++; continue; } @@ -459,7 +457,6 @@ void* tcpClientThread(int pipefd) handler.writeSizeAndMsg(query, dq.len, g_tcpSendTimeout); // no response-only statistics counter to update. - doLatencyStats(0); // we're not going to measure this continue; } @@ -632,7 +629,6 @@ void* tcpClientThread(int pipefd) std::lock_guard lock(g_rings.respMutex); g_rings.respRing.push_back({answertime, ci.remote, qname, dq.qtype, (unsigned int)udiff, (unsigned int)responseLen, *dh, ds->remote}); } - doLatencyStats(udiff); rewrittenResponse.clear(); }