mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-05 00:31:54 +08:00
调整GRPC参数
This commit is contained in:
@@ -267,6 +267,7 @@ func (this *APINode) listenRPC(listener net.Listener, tlsConfig *tls.Config) err
|
|||||||
var rpcServer *grpc.Server
|
var rpcServer *grpc.Server
|
||||||
var options = []grpc.ServerOption{
|
var options = []grpc.ServerOption{
|
||||||
grpc.MaxRecvMsgSize(128 * 1024 * 1024),
|
grpc.MaxRecvMsgSize(128 * 1024 * 1024),
|
||||||
|
grpc.MaxSendMsgSize(128 * 1024 * 1024),
|
||||||
grpc.UnaryInterceptor(this.unaryInterceptor),
|
grpc.UnaryInterceptor(this.unaryInterceptor),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user