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)
| 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. |
| 291 | func 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. |