WithInitialConnWindowSize returns a DialOption which sets the value for initial window size on a connection. The lower bound for window size is 64K and any value smaller than that will be ignored.
(s int32)
| 219 | // initial window size on a connection. The lower bound for window size is 64K |
| 220 | // and any value smaller than that will be ignored. |
| 221 | func WithInitialConnWindowSize(s int32) DialOption { |
| 222 | return newFuncDialOption(func(o *dialOptions) { |
| 223 | o.copts.InitialConnWindowSize = s |
| 224 | o.copts.StaticWindowSize = true |
| 225 | }) |
| 226 | } |
| 227 | |
| 228 | // WithStaticStreamWindowSize returns a DialOption which sets the initial |
| 229 | // stream window size to the value provided and disables dynamic flow control. |