1
1
mirror of https://git.sr.ht/~emersion/tlstunnel synced 2024-11-19 15:53:50 +01:00

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

@ -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