Enable HTTP/2 pings

This commit is contained in:
Frank Denis 2021-09-21 12:57:42 +02:00
parent 97a983c6b3
commit 8fc0ffc35f
1 changed files with 4 additions and 1 deletions

View File

@ -203,7 +203,10 @@ func (xTransport *XTransport) rebuildTransport() {
}
}
transport.TLSClientConfig = &tlsClientConfig
http2.ConfigureTransport(transport)
if http2Transport, err := http2.ConfigureTransports(transport); err != nil {
http2Transport.ReadIdleTimeout = timeout
http2Transport.AllowHTTP = false
}
xTransport.transport = transport
}