diff options
author | Matthew Holt <[email protected]> | 2016-09-27 17:49:00 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2016-09-27 17:49:00 -0600 |
commit | 6397a85e509c2a0e2653d90923de8e7ec0c68a80 (patch) | |
tree | 7b410cb3f839e4e9f9f6902820425f5ded6f2f47 | |
parent | 617012c3fb701502f98ad9b7c27617a94560c581 (diff) | |
download | caddy-6397a85e509c2a0e2653d90923de8e7ec0c68a80.tar.gz caddy-6397a85e509c2a0e2653d90923de8e7ec0c68a80.zip |
proxy: Only wait 250ms between backend tries
-rw-r--r-- | caddyhttp/proxy/upstream.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/caddyhttp/proxy/upstream.go b/caddyhttp/proxy/upstream.go index 47162ea2a..c5ca77f07 100644 --- a/caddyhttp/proxy/upstream.go +++ b/caddyhttp/proxy/upstream.go @@ -56,7 +56,7 @@ func NewStaticUpstreams(c caddyfile.Dispenser) ([]Upstream, error) { Hosts: nil, Policy: &Random{}, MaxFails: 1, - TryInterval: 1 * time.Second, + TryInterval: 250 * time.Millisecond, MaxConns: 0, KeepAlive: http.DefaultMaxIdleConnsPerHost, } |