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:
parent
f8542ebcee
commit
649ef6f327
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue