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

Function WithWriteBufferSize

dialoptions.go:190–194  ·  view source on GitHub ↗

WithWriteBufferSize 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 wri

(s int)

Source from the content-addressed store, hash-verified

188// will be on underlying connection. Note: A Send call may not directly
189// translate to a write.
190func WithWriteBufferSize(s int) DialOption {
191 return newFuncDialOption(func(o *dialOptions) {
192 o.copts.WriteBufferSize = s
193 })
194}
195
196// WithReadBufferSize lets you set the size of read buffer, this determines how
197// much data can be read at most for each read syscall.

Callers 4

buildConnectionsFunction · 0.92
makeClientsFunction · 0.92
createConnsFunction · 0.92
TestDisabledIOBuffersMethod · 0.92

Calls 1

newFuncDialOptionFunction · 0.85

Tested by 1

TestDisabledIOBuffersMethod · 0.74