From 48a49f69a7dfe8faa584285a3f5fc0fa48fbd133 Mon Sep 17 00:00:00 2001 From: Gusted Date: Sun, 3 Jul 2022 13:20:02 +0200 Subject: [PATCH] Increase concurrent connections to default value (#99) Use the default value of `256 * 1024` for the concurrency limit, this will mean that the server will be able to handle more connections. Co-authored-by: Gusted Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/99 Reviewed-by: 6543 <6543@noreply.codeberg.org> Co-authored-by: Gusted Co-committed-by: Gusted --- server/setup.go | 1 - 1 file changed, 1 deletion(-) diff --git a/server/setup.go b/server/setup.go index c186222..027b3e1 100644 --- a/server/setup.go +++ b/server/setup.go @@ -21,7 +21,6 @@ func SetupServer(handler fasthttp.RequestHandler) *fasthttp.Server { NoDefaultServerHeader: true, 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! } }