From ece105f565ab440ec03db48234c4fe8d4eaf0946 Mon Sep 17 00:00:00 2001 From: Moritz Marquardt Date: Sat, 14 May 2022 18:12:16 +0200 Subject: [PATCH] Change MaxConnsPerIP to 0 to fix too many connections from HAProxy --- server/setup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/setup.go b/server/setup.go index 67c1c42..4e193d4 100644 --- a/server/setup.go +++ b/server/setup.go @@ -23,7 +23,7 @@ func SetupServer(handler fasthttp.RequestHandler) *fasthttp.Server { NoDefaultDate: true, ReadTimeout: 30 * time.Second, // needs to be this high for ACME certificates with ZeroSSL & HTTP-01 challenge Concurrency: 1024 * 32, // TODO: adjust bottlenecks for best performance with Gitea! - MaxConnsPerIP: 100, + MaxConnsPerIP: 0, } }