aboutsummaryrefslogtreecommitdiff
path: root/plugin/forward/persistent_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-11-20 08:48:56 +0100
committerGravatar GitHub <noreply@github.com> 2018-11-20 08:48:56 +0100
commita1d92c51cd93a83dd2936f4b857b155d5d321a26 (patch)
tree9c40966fe6651c294734116946fcd30a193046cf /plugin/forward/persistent_test.go
parente94ce7a12ae6e7fdf977ad94aade3effd44ed399 (diff)
downloadcoredns-a1d92c51cd93a83dd2936f4b857b155d5d321a26.tar.gz
coredns-a1d92c51cd93a83dd2936f4b857b155d5d321a26.tar.zst
coredns-a1d92c51cd93a83dd2936f4b857b155d5d321a26.zip
plugin/forward: remove dynamic read timeout (#2319)
* plugin/forward: remove dynamic read timeout We care about an upstream being there, so we still have a dynamic dial time out (by way higher then 200ms) of 1s; this should be fairly stable for an upstream. The read timeout if more variable because of cached and non cached responses. As such remove his logic entirely. Drop to 2s read timeout. Fixes #2306 Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'plugin/forward/persistent_test.go')
-rw-r--r--plugin/forward/persistent_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/forward/persistent_test.go b/plugin/forward/persistent_test.go
index 271a80c0b..f1c906076 100644
--- a/plugin/forward/persistent_test.go
+++ b/plugin/forward/persistent_test.go
@@ -140,9 +140,9 @@ func TestCleanupAll(t *testing.T) {
tr := newTransport(s.Addr)
- c1, _ := dns.DialTimeout("udp", tr.addr, defaultDialTimeout)
- c2, _ := dns.DialTimeout("udp", tr.addr, defaultDialTimeout)
- c3, _ := dns.DialTimeout("udp", tr.addr, defaultDialTimeout)
+ c1, _ := dns.DialTimeout("udp", tr.addr, maxDialTimeout)
+ c2, _ := dns.DialTimeout("udp", tr.addr, maxDialTimeout)
+ c3, _ := dns.DialTimeout("udp", tr.addr, maxDialTimeout)
tr.conns["udp"] = []*persistConn{
{c1, time.Now()},