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

Function WriteBufferSize

server.go:264–268  ·  view source on GitHub ↗

WriteBufferSize determines how much data can be batched before doing a write on the wire. The default value for this buffer is 32KB. Zero or negative values will disable the write buffer such that each write will be on underlying connection. Note: A Send call may not directly translate to a write.

(s int)

Source from the content-addressed store, hash-verified

262// values will disable the write buffer such that each write will be on underlying
263// connection. Note: A Send call may not directly translate to a write.
264func WriteBufferSize(s int) ServerOption {
265 return newFuncServerOption(func(o *serverOptions) {
266 o.writeBufferSize = s
267 })
268}
269
270// ReadBufferSize lets you set the size of read buffer, this determines how much
271// data can be read at most for one read syscall. The default value for this

Callers 5

makeClientsFunction · 0.92
startBenchmarkServerFunction · 0.92
mainFunction · 0.92
TestDisabledIOBuffersMethod · 0.92

Calls 1

newFuncServerOptionFunction · 0.85

Tested by 2

TestDisabledIOBuffersMethod · 0.74