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

Function SharedWriteBuffer

server.go:254–258  ·  view source on GitHub ↗

SharedWriteBuffer 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. SharedWriteBuffer will be removed in a future release.

(val bool)

Source from the content-addressed store, hash-verified

252// Deprecated: shared write buffer is enabled by default. SharedWriteBuffer
253// will be removed in a future release.
254func SharedWriteBuffer(val bool) ServerOption {
255 return newFuncServerOption(func(o *serverOptions) {
256 o.sharedWriteBuffer = val
257 })
258}
259
260// WriteBufferSize determines how much data can be batched before doing a write
261// on the wire. The default value for this buffer is 32KB. Zero or negative

Callers 1

makeClientsFunction · 0.92

Calls 1

newFuncServerOptionFunction · 0.85

Tested by

no test coverage detected