From 82e82d9b7a80e4e3e1f3a3b2dd37c6d87b8fb708 Mon Sep 17 00:00:00 2001 From: Mihai Parparita Date: Tue, 13 Sep 2022 17:20:37 -0700 Subject: [PATCH] net/dns/resolver: remove unused responseTimeout constant Timeout is now enforced elsewhere, see discussion in https://github.com/tailscale/tailscale/pull/4408#discussion_r970092333. Signed-off-by: Mihai Parparita --- net/dns/resolver/forwarder.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/net/dns/resolver/forwarder.go b/net/dns/resolver/forwarder.go index 8e1b5ba0b..470153f5f 100644 --- a/net/dns/resolver/forwarder.go +++ b/net/dns/resolver/forwarder.go @@ -58,9 +58,6 @@ func truncatedFlagSet(pkt []byte) bool { } const ( - // responseTimeout is the maximal amount of time to wait for a DNS response. - responseTimeout = 5 * time.Second - // dohTransportTimeout is how long to keep idle HTTP // connections open to DNS-over-HTTPs servers. This is pretty // arbitrary.