From a9818915a8fdde27c2c8b2c258fb7a81877092a7 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 (cherry picked from commit 82e82d9b7a80e4e3e1f3a3b2dd37c6d87b8fb708) --- 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 7fda4aca9..2605a67ec 100644 --- a/net/dns/resolver/forwarder.go +++ b/net/dns/resolver/forwarder.go @@ -57,9 +57,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.