MCPcopy
hub / github.com/grpc/grpc-go / WithInitialConnWindowSize

Function WithInitialConnWindowSize

dialoptions.go:221–226  ·  view source on GitHub ↗

WithInitialConnWindowSize returns a DialOption which sets the value for initial window size on a connection. The lower bound for window size is 64K and any value smaller than that will be ignored.

(s int32)

Source from the content-addressed store, hash-verified

219// initial window size on a connection. The lower bound for window size is 64K
220// and any value smaller than that will be ignored.
221func WithInitialConnWindowSize(s int32) DialOption {
222 return newFuncDialOption(func(o *dialOptions) {
223 o.copts.InitialConnWindowSize = s
224 o.copts.StaticWindowSize = true
225 })
226}
227
228// WithStaticStreamWindowSize returns a DialOption which sets the initial
229// stream window size to the value provided and disables dynamic flow control.

Callers 1

configDialMethod · 0.92

Calls 1

newFuncDialOptionFunction · 0.85

Tested by 1

configDialMethod · 0.74