mirror of
https://github.com/coredns/coredns.git
synced 2025-12-08 03:15:41 -05:00
middleware/httproxy: smaller timeouts
Make the timeouts smaller after we fail to connect.
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user