Skip to content

Commit

Permalink
enhance: Set default max send recv size
Browse files Browse the repository at this point in the history
Related to milvus-io#831

Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia committed Oct 17, 2024
1 parent 8008f14 commit b94c573
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ var DefaultGrpcOpts = []grpc.DialOption{
},
MinConnectTimeout: 3 * time.Second,
}),
grpc.WithDefaultCallOptions(
grpc.MaxCallRecvMsgSize(math.MaxInt32), // math.MaxInt32 = 2147483647, 2GB - 1
// not setting max send msg size, since default is Unlimited
),
}

// Config for milvus client.
Expand Down

0 comments on commit b94c573

Please sign in to comment.