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

Function WithStaticStreamWindowSize

dialoptions.go:238–243  ·  view source on GitHub ↗

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

(s int32)

Source from the content-addressed store, hash-verified

236// Most users should not configure static flow control windows unless
237// operating in a memory-constrained environment.
238func WithStaticStreamWindowSize(s int32) DialOption {
239 return newFuncDialOption(func(o *dialOptions) {
240 o.copts.InitialWindowSize = s
241 o.copts.StaticWindowSize = true
242 })
243}
244
245// WithStaticConnWindowSize returns a DialOption which sets the initial
246// connection window size to the value provided and disables dynamic flow

Calls 1

newFuncDialOptionFunction · 0.85