Skip to content

Commit

Permalink
Merge pull request #4609 from onflow/petera/4596-increase-max-grpc-ms…
Browse files Browse the repository at this point in the history
…g-size

[Access] Update default grpc max message size to 1GiB
  • Loading branch information
peterargue authored Aug 9, 2023
2 parents f074502 + 67e6d12 commit 3f67654
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions utils/grpcutils/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ import (
"github.com/onflow/flow-go/network/p2p/keyutils"
)

// DefaultMaxMsgSize use 20MB as the default message size limit.
// grpc library default is 4MB
const DefaultMaxMsgSize = 1024 * 1024 * 20
// DefaultMaxMsgSize use 1 GiB as the default message size limit.
// This enforces a sane max message size, while still allowing for reasonably large messages.
// grpc library default is 4 MiB.
const DefaultMaxMsgSize = 1 << (10 * 3) // 1 GiB

// CertificateConfig is used to configure an Certificate
type CertificateConfig struct {
Expand Down

0 comments on commit 3f67654

Please sign in to comment.