From 649ef6f3272d958649b14c81326b4d56c13297c6 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 18 Feb 2021 18:16:10 +0100 Subject: [PATCH] Increase TLS handshake timeout On-demand certificates can make the handshake pretty slow. It takes about 5s on my setup. --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 83646b4..e7327c4 100644 --- a/server.go +++ b/server.go @@ -17,7 +17,7 @@ import ( "github.com/pires/go-proxyproto/tlvparse" ) -const tlsHandshakeTimeout = 10 * time.Second +const tlsHandshakeTimeout = 20 * time.Second type acmeCache struct { config *certmagic.Config