Enable HTTP/2 pings
This commit is contained in:
parent
97a983c6b3
commit
8fc0ffc35f
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue