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

Function MaxMsgSize

server.go:444–446  ·  view source on GitHub ↗

MaxMsgSize returns a ServerOption to set the max message size in bytes the server can receive. If this is not set, gRPC uses the default limit. Deprecated: use MaxRecvMsgSize instead. Will be supported throughout 1.x.

(m int)

Source from the content-addressed store, hash-verified

442//
443// Deprecated: use MaxRecvMsgSize instead. Will be supported throughout 1.x.
444func MaxMsgSize(m int) ServerOption {
445 return MaxRecvMsgSize(m)
446}
447
448// MaxRecvMsgSize returns a ServerOption to set the max message size in bytes the server can receive.
449// If this is not set, gRPC uses the default 4MB.

Callers 1

listenAndServeMethod · 0.92

Calls 1

MaxRecvMsgSizeFunction · 0.85

Tested by 1

listenAndServeMethod · 0.74