Skip to content

Commit c0e98e4

Browse files
committed
increase initialWindowSize and initialConnWindowSize by 32x.
Improves throughput by 5x. Partially addresses grpc#1043.
1 parent 8de2dff commit c0e98e4

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 * 32 // for an RPC
50+
initialConnWindowSize = defaultWindowSize * 16 * 32 // for a connection
5151
infinity = time.Duration(math.MaxInt64)
5252
defaultClientKeepaliveTime = infinity
5353
defaultClientKeepaliveTimeout = time.Duration(20 * time.Second)

0 commit comments

Comments
 (0)