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)
| 308 | // Most users should not configure static flow control windows unless |
| 309 | // operating in a memory-constrained environment. |
| 310 | func 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. |
nothing calls this directly
no test coverage detected