WithStaticConnWindowSize returns a DialOption which sets the initial connection window size to the value provided and disables dynamic flow control. Note that this also disables dynamic flow control for individual streams, falling back to a default static connection-level window of 64KB. To explici
(s int32)
| 254 | // Most users should not configure static flow control windows unless |
| 255 | // operating in a memory-constrained environment. |
| 256 | func WithStaticConnWindowSize(s int32) DialOption { |
| 257 | return newFuncDialOption(func(o *dialOptions) { |
| 258 | o.copts.InitialConnWindowSize = s |
| 259 | o.copts.StaticWindowSize = true |
| 260 | }) |
| 261 | } |
| 262 | |
| 263 | // WithMaxMsgSize returns a DialOption which sets the maximum message size the |
| 264 | // client can receive. |
nothing calls this directly
no test coverage detected