diff options
-rw-r--r-- | api/grpc_server.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api/grpc_server.go b/api/grpc_server.go index 54fcffb5..38d5116e 100644 --- a/api/grpc_server.go +++ b/api/grpc_server.go @@ -43,7 +43,8 @@ type Server struct { } func NewGrpcServer(b *server.BgpServer, hosts string) *Server { - return NewServer(b, grpc.NewServer(), hosts) + size := 256 << 20 + return NewServer(b, grpc.NewServer(grpc.MaxRecvMsgSize(size), grpc.MaxSendMsgSize(size)), hosts) } func NewServer(b *server.BgpServer, g *grpc.Server, hosts string) *Server { |