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

Function WithStaticConnWindowSize

dialoptions.go:256–261  ·  view source on GitHub ↗

WithStaticConnWindowSize returns a DialOption which sets the initial connection window size to the value provided and disables dynamic flow control. Note that this also disables dynamic flow control for individual streams, falling back to a default static connection-level window of 64KB. To explici

(s int32)

Source from the content-addressed store, hash-verified

254// Most users should not configure static flow control windows unless
255// operating in a memory-constrained environment.
256func WithStaticConnWindowSize(s int32) DialOption {
257 return newFuncDialOption(func(o *dialOptions) {
258 o.copts.InitialConnWindowSize = s
259 o.copts.StaticWindowSize = true
260 })
261}
262
263// WithMaxMsgSize returns a DialOption which sets the maximum message size the
264// client can receive.

Callers

nothing calls this directly

Calls 1

newFuncDialOptionFunction · 0.85

Tested by

no test coverage detected