revert: tls handshake timeout recovery 10s

This commit is contained in:
Skyxim 2022-05-08 21:56:59 +08:00
parent aded1b78b5
commit 2072964701

View file

@ -74,7 +74,7 @@ func (h *HTTPVehicle) Read() ([]byte, error) {
// from http.DefaultTransport // from http.DefaultTransport
MaxIdleConns: 100, MaxIdleConns: 100,
IdleConnTimeout: 30 * time.Second, IdleConnTimeout: 30 * time.Second,
TLSHandshakeTimeout: 5 * time.Second, TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second, ExpectContinueTimeout: 1 * time.Second,
DialContext: func(ctx context.Context, network, address string) (net.Conn, error) { DialContext: func(ctx context.Context, network, address string) (net.Conn, error) {
conn := inner.HandleTcp(address, uri.Hostname()) conn := inner.HandleTcp(address, uri.Hostname())