feature: tune transport buffer size to increase performance

This commit is contained in:
Marc Vertes
2021-03-05 14:30:04 +01:00
committed by GitHub
parent bdba7d3adf
commit e898080460

View File

@@ -123,6 +123,8 @@ func createRoundTripper(cfg *dynamic.ServersTransport) (http.RoundTripper, error
IdleConnTimeout: 90 * time.Second,
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,
ReadBufferSize: 64 * 1024,
WriteBufferSize: 64 * 1024,
}
transport.RegisterProtocol("h2c", &h2cTransportWrapper{