Increase TLS handshake timeout

On-demand certificates can make the handshake pretty slow. It takes
about 5s on my setup.
This commit is contained in:
Simon Ser 2021-02-18 18:16:10 +01:00
parent f8542ebcee
commit 649ef6f327
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ import (
"github.com/pires/go-proxyproto/tlvparse" "github.com/pires/go-proxyproto/tlvparse"
) )
const tlsHandshakeTimeout = 10 * time.Second const tlsHandshakeTimeout = 20 * time.Second
type acmeCache struct { type acmeCache struct {
config *certmagic.Config config *certmagic.Config