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 <mihai@tailscale.com>
(cherry picked from commit 82e82d9b7a)
This commit is contained in:
Mihai Parparita 2022-09-13 17:20:37 -07:00 committed by Brad Fitzpatrick
parent 50aa6ed5e4
commit a9818915a8

View File

@ -57,9 +57,6 @@ func truncatedFlagSet(pkt []byte) bool {
} }
const ( 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 // dohTransportTimeout is how long to keep idle HTTP
// connections open to DNS-over-HTTPs servers. This is pretty // connections open to DNS-over-HTTPs servers. This is pretty
// arbitrary. // arbitrary.