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

Function StaticStreamWindowSize

server.go:310–315  ·  view source on GitHub ↗

StaticStreamWindowSize returns a ServerOption to set the initial stream window size to the value provided and disables dynamic flow control. The lower bound for window size is 64K and any value smaller than that will be ignored. Note that this also disables dynamic flow control for the connection,

(s int32)

Source from the content-addressed store, hash-verified

308// Most users should not configure static flow control windows unless
309// operating in a memory-constrained environment.
310func StaticStreamWindowSize(s int32) ServerOption {
311 return newFuncServerOption(func(o *serverOptions) {
312 o.initialWindowSize = s
313 o.staticWindowSize = true
314 })
315}
316
317// StaticConnWindowSize returns a ServerOption to set the initial connection
318// window size to the value provided and disables dynamic flow control.

Callers

nothing calls this directly

Calls 1

newFuncServerOptionFunction · 0.85

Tested by

no test coverage detected