From 1216612f4523543df07ecaceee2737b343a2d68f Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Tue, 6 Mar 2018 08:49:25 +0100 Subject: [PATCH] Remove latency tracking for TCP again, for now --- pdns/dnsdist-tcp.cc | 4 ---- 1 file changed, 4 deletions(-) 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(); } -- 2.40.0