MaxRecvMsgSize returns a ServerOption to set the max message size in bytes the server can receive. If this is not set, gRPC uses the default 4MB.
(m int)
| 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. |
| 450 | func MaxRecvMsgSize(m int) ServerOption { |
| 451 | return newFuncServerOption(func(o *serverOptions) { |
| 452 | o.maxReceiveMessageSize = m |
| 453 | }) |
| 454 | } |
| 455 | |
| 456 | // MaxSendMsgSize returns a ServerOption to set the max message size in bytes the server can send. |
| 457 | // If this is not set, gRPC uses the default `math.MaxInt32`. |