middleware/httproxy: smaller timeouts

Make the timeouts smaller after we fail to connect.
This commit is contained in:
Miek Gieben
2016-11-27 15:24:50 +00:00
parent 96222927a3
commit 0876a38cd9
2 changed files with 3 additions and 3 deletions

View File

@@ -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,
}