diff options
author | 2016-11-27 15:24:50 +0000 | |
---|---|---|
committer | 2016-11-27 15:24:50 +0000 | |
commit | 0876a38cd9e720c98372a13d8575df8f5f57daf5 (patch) | |
tree | b883e47f92ae8f1c947af91ddfd3e8062a8bfd66 /middleware/httpproxy/upstream.go | |
parent | 96222927a3309570b7ac7c618a28731f52845544 (diff) | |
download | coredns-0876a38cd9e720c98372a13d8575df8f5f57daf5.tar.gz coredns-0876a38cd9e720c98372a13d8575df8f5f57daf5.tar.zst coredns-0876a38cd9e720c98372a13d8575df8f5f57daf5.zip |
middleware/httproxy: smaller timeouts
Make the timeouts smaller after we fail to connect.
Diffstat (limited to 'middleware/httpproxy/upstream.go')
-rw-r--r-- | middleware/httpproxy/upstream.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/httpproxy/upstream.go b/middleware/httpproxy/upstream.go index f12de51fb..3342cce6f 100644 --- a/middleware/httpproxy/upstream.go +++ b/middleware/httpproxy/upstream.go @@ -22,7 +22,7 @@ func newSimpleUpstream(hosts []string) (*simpleUpstream, error) { upstream := &simpleUpstream{ Hosts: nil, Policy: &proxy.Random{}, - FailTimeout: 10 * time.Second, + FailTimeout: 3 * time.Second, MaxFails: 3, } |