Skip to content

Commit

Permalink
tikv: remove max grpc msg limitation for kv request (#11005)
Browse files Browse the repository at this point in the history
  • Loading branch information
lysu authored and jackysp committed Jul 1, 2019
1 parent 5409406 commit 5fd7ed7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions store/tikv/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ import (
"google.golang.org/grpc/keepalive"
)

// MaxSendMsgSize set max gRPC request message size sent to server. If any request message size is larger than
// current value, an error will be reported from gRPC.
var MaxSendMsgSize = 10 * 1024 * 1024

// MaxRecvMsgSize set max gRPC receive message size received from server. If any message size is larger than
// current value, an error will be reported from gRPC.
var MaxRecvMsgSize = math.MaxInt64
Expand Down Expand Up @@ -258,7 +254,6 @@ func (a *connArray) Init(addr string, security config.Security) error {
grpc.WithUnaryInterceptor(unaryInterceptor),
grpc.WithStreamInterceptor(streamInterceptor),
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(MaxRecvMsgSize)),
grpc.WithDefaultCallOptions(grpc.MaxCallSendMsgSize(MaxSendMsgSize)),
grpc.WithBackoffMaxDelay(time.Second*3),
grpc.WithKeepaliveParams(keepalive.ClientParameters{
Time: time.Duration(keepAlive) * time.Second,
Expand Down

0 comments on commit 5fd7ed7

Please sign in to comment.