Skip to content

Commit 9720953

Browse files
committed
increase initialWindowSize and initialConnWindowSize by 2048.
Improves throughput by 5x. Partially addresses #1043.
1 parent 14a6be4 commit 9720953

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

transport/control.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ const (
4646
// The default value of flow control window size in HTTP2 spec.
4747
defaultWindowSize = 65535
4848
// The initial window size for flow control.
49-
initialWindowSize = defaultWindowSize // for an RPC
50-
initialConnWindowSize = defaultWindowSize * 16 // for a connection
49+
initialWindowSize = defaultWindowSize * 2048 // for an RPC
50+
initialConnWindowSize = defaultWindowSize * 16 * 2048 // for a connection
5151
infinity = time.Duration(math.MaxInt64)
5252
defaultClientKeepaliveTime = infinity
5353
defaultClientKeepaliveTimeout = time.Duration(20 * time.Second)

0 commit comments

Comments
 (0)