Skip to content

Commit

Permalink
fix: increase grpc server msg cap (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahanmmi committed Jun 18, 2024
1 parent 79d7e93 commit 321339b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/plugin/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ func (m *Manager) StartServer() error {

m.port = m.lis.Addr().(*net.TCPAddr).Port

m.grpcServer = grpc.NewServer()
m.grpcServer = grpc.NewServer(
grpc.MaxRecvMsgSize(64*1024*1024),
grpc.MaxSendMsgSize(64*1024*1024),
)
golang.RegisterPluginServer(m.grpcServer, m)
go func() {
err = m.grpcServer.Serve(m.lis)
Expand Down

0 comments on commit 321339b

Please sign in to comment.