diff options
author | 2018-06-15 02:37:22 -0400 | |
---|---|---|
committer | 2018-06-15 07:37:22 +0100 | |
commit | 70c957d885a6c6b33a0828c680e451a9e3a3994a (patch) | |
tree | ded4dcca7d38e9a17bd92fb68b49457617f51bbb /plugin/forward/persistent_test.go | |
parent | 6f865a9de7d5ddc3daf52512016a5bbf72e3fb9a (diff) | |
download | coredns-70c957d885a6c6b33a0828c680e451a9e3a3994a.tar.gz coredns-70c957d885a6c6b33a0828c680e451a9e3a3994a.tar.zst coredns-70c957d885a6c6b33a0828c680e451a9e3a3994a.zip |
Plugin/Forward - autotune the dialTimeout for connection (#1852)
* - implement an auto-tunable dialTimeout for fallback.
* - fix gofmt
* - factorized timeout computation with readTimeout / updated readme /
* - fix comment
Diffstat (limited to 'plugin/forward/persistent_test.go')
-rw-r--r-- | plugin/forward/persistent_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/forward/persistent_test.go b/plugin/forward/persistent_test.go index 6aa8999f7..e046cf4de 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, nil /* no TLS */) - c1, _ := dns.DialTimeout("udp", tr.addr, dialTimeout) - c2, _ := dns.DialTimeout("udp", tr.addr, dialTimeout) - c3, _ := dns.DialTimeout("udp", tr.addr, dialTimeout) + c1, _ := dns.DialTimeout("udp", tr.addr, defaultDialTimeout) + c2, _ := dns.DialTimeout("udp", tr.addr, defaultDialTimeout) + c3, _ := dns.DialTimeout("udp", tr.addr, defaultDialTimeout) tr.conns["udp"] = []*persistConn{ {c1, time.Now()}, |