Skip to content

Commit 1014364

Browse files
author
Peter Stace
authored
Increase grpc max size to 4GB (maximum possible) (#1861)
1 parent f7e4d19 commit 1014364

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: x/x.go

+7-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,13 @@ const (
4848
ErrorServiceUnavailable = "ErrorServiceUnavailable"
4949
ValidHostnameRegex = "^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\-]*[A-Za-z0-9])$"
5050
// When changing this value also remember to change in in client/client.go:DeleteEdges.
51-
Star = "_STAR_ALL"
52-
GrpcMaxSize = 256 << 20
51+
Star = "_STAR_ALL"
52+
53+
// Use the max possible grpc msg size for the most flexibility (4GB - equal
54+
// to the max grpc frame size). Users will still need to set the max
55+
// message sizes allowable on the client size when dialing.
56+
GrpcMaxSize = 4 << 30
57+
5358
// The attr used to store list of predicates for a node.
5459
PredicateListAttr = "_predicate_"
5560

0 commit comments

Comments
 (0)