From e898080460f62a9b8ea7b3a6c9f8165ba6c00943 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Fri, 5 Mar 2021 14:30:04 +0100 Subject: [PATCH] feature: tune transport buffer size to increase performance --- pkg/server/service/roundtripper.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/server/service/roundtripper.go b/pkg/server/service/roundtripper.go index f45568fd4..96384c4bc 100644 --- a/pkg/server/service/roundtripper.go +++ b/pkg/server/service/roundtripper.go @@ -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{