mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-06 10:00:24 +08:00
增加RPC消息最大尺寸到512MB
This commit is contained in:
@@ -268,8 +268,8 @@ func (this *APINode) InstallSystemService() error {
|
|||||||
func (this *APINode) listenRPC(listener net.Listener, tlsConfig *tls.Config) error {
|
func (this *APINode) listenRPC(listener net.Listener, tlsConfig *tls.Config) error {
|
||||||
var rpcServer *grpc.Server
|
var rpcServer *grpc.Server
|
||||||
var options = []grpc.ServerOption{
|
var options = []grpc.ServerOption{
|
||||||
grpc.MaxRecvMsgSize(128 * 1024 * 1024),
|
grpc.MaxRecvMsgSize(512 << 20),
|
||||||
grpc.MaxSendMsgSize(128 * 1024 * 1024),
|
grpc.MaxSendMsgSize(512 << 20),
|
||||||
grpc.UnaryInterceptor(this.unaryInterceptor),
|
grpc.UnaryInterceptor(this.unaryInterceptor),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user