From 6397a85e509c2a0e2653d90923de8e7ec0c68a80 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 27 Sep 2016 17:49:00 -0600 Subject: [PATCH] proxy: Only wait 250ms between backend tries --- caddyhttp/proxy/upstream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caddyhttp/proxy/upstream.go b/caddyhttp/proxy/upstream.go index 47162ea2..c5ca77f0 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, }