From e36433c23adb771620e5e2c3a1d66be2a192bfd7 Mon Sep 17 00:00:00 2001 From: Emile Vauge Date: Wed, 6 Apr 2016 14:07:51 +0200 Subject: [PATCH] Fix retry attempts Signed-off-by: Emile Vauge --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index f2e9e50ab..c9dbbc551 100644 --- a/server.go +++ b/server.go @@ -425,7 +425,7 @@ func (server *Server) loadConfig(configurations configs, globalConfiguration Glo } // retry ? if globalConfiguration.Retry != nil { - retries := len(configuration.Backends[frontend.Backend].Servers) - 1 + retries := len(configuration.Backends[frontend.Backend].Servers) if globalConfiguration.Retry.Attempts > 0 { retries = globalConfiguration.Retry.Attempts }