From 25d5ab8f8e23edf5213ca9e7cdf5416d518f98d9 Mon Sep 17 00:00:00 2001 From: "Jason E. Aten" Date: Mon, 27 Mar 2017 13:34:09 -0700 Subject: [PATCH] increase initialWindowSize and initialConnWindowSize by 32x. Improves throughput by 5x. Partially addresses #1043. --- transport/control.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/control.go b/transport/control.go index 64d22f849b2b..9f63a06959f9 100644 --- a/transport/control.go +++ b/transport/control.go @@ -46,8 +46,8 @@ const ( // The default value of flow control window size in HTTP2 spec. defaultWindowSize = 65535 // The initial window size for flow control. - initialWindowSize = defaultWindowSize // for an RPC - initialConnWindowSize = defaultWindowSize * 16 // for a connection + initialWindowSize = defaultWindowSize * 32 // for an RPC + initialConnWindowSize = defaultWindowSize * 16 * 32 // for a connection infinity = time.Duration(math.MaxInt64) defaultClientKeepaliveTime = infinity defaultClientKeepaliveTimeout = time.Duration(20 * time.Second)