MCPcopy
hub / github.com/grpc/grpc-go / WithSharedWriteBuffer

Function WithSharedWriteBuffer

dialoptions.go:178–182  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

176// Deprecated: shared write buffer is enabled by default. WithSharedWriteBuffer
177// will be removed in a future release.
178func 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.

Callers 1

makeClientsFunction · 0.92

Calls 1

newFuncDialOptionFunction · 0.85

Tested by

no test coverage detected