1
1
Fork 0
mirror of https://git.sr.ht/~emersion/tlstunnel synced 2024-05-11 22:06:07 +02: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

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