WithSharedWriteBuffer allows reusing per-connection transport write buffer. If this option is set to true every connection will release the buffer after flushing the data on the wire. Deprecated: shared write buffer is enabled by default. WithSharedWriteBuffer will be removed in a future release.
(val bool)
| 176 | // Deprecated: shared write buffer is enabled by default. WithSharedWriteBuffer |
| 177 | // will be removed in a future release. |
| 178 | func WithSharedWriteBuffer(val bool) DialOption { |
| 179 | return newFuncDialOption(func(o *dialOptions) { |
| 180 | o.copts.SharedWriteBuffer = val |
| 181 | }) |
| 182 | } |
| 183 | |
| 184 | // WithWriteBufferSize determines how much data can be batched before doing a |
| 185 | // write on the wire. The default value for this buffer is 32KB. |
no test coverage detected