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)
| 236 | // Most users should not configure static flow control windows unless |
| 237 | // operating in a memory-constrained environment. |
| 238 | func 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 |