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

Function InitialConnWindowSize

server.go:291–296  ·  view source on GitHub ↗

InitialConnWindowSize returns a ServerOption that sets window size for 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

289// InitialConnWindowSize returns a ServerOption that sets window size for a connection.
290// The lower bound for window size is 64K and any value smaller than that will be ignored.
291func InitialConnWindowSize(s int32) ServerOption {
292 return newFuncServerOption(func(o *serverOptions) {
293 o.initialConnWindowSize = s
294 o.staticWindowSize = true
295 })
296}
297
298// StaticStreamWindowSize returns a ServerOption to set the initial stream
299// window size to the value provided and disables dynamic flow control.

Callers 1

listenAndServeMethod · 0.92

Calls 1

newFuncServerOptionFunction · 0.85

Tested by 1

listenAndServeMethod · 0.74