Skip to content

Commit

Permalink
Merge pull request #1910 from actiontech/issue-1909
Browse files Browse the repository at this point in the history
set the limitation as a max number to avoid receive limitation
  • Loading branch information
winfredLIN authored Oct 13, 2023
2 parents 704e4f1 + e3449a6 commit 4422f47
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sqle/driver/common/grpc.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
package common

import (
"math"

"google.golang.org/grpc"
)

// custom GRPC client options
var GRPCDialOptions = []grpc.DialOption{}

// custom GRPC server options
var GRPCServerOptions = []grpc.ServerOption{}
var GRPCServerOptions = []grpc.ServerOption{
grpc.MaxRecvMsgSize(math.MaxInt32),
}

func NewGRPCServer(opts []grpc.ServerOption) *grpc.Server {
return grpc.NewServer(append(opts, GRPCServerOptions...)...)
Expand Down

0 comments on commit 4422f47

Please sign in to comment.