Skip to content

Commit

Permalink
set the max message size to 2MB (#266)
Browse files Browse the repository at this point in the history
Fixes #265
  • Loading branch information
groob authored Feb 26, 2018
1 parent 13a6da8 commit 5aba90d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions osquery/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ const (
configKey = "config"

// Default maximum number of bytes per batch (used if not specified in
// options). This 4MB limit is chosen based on the default grpc-go
// options). This 2MB limit is chosen based on the default grpc-go
// limit specified in https://github.com/grpc/grpc-go/blob/master/server.go#L51
defaultMaxBytesPerBatch = 4 << 20
// which is 4MB. We use 2MB to be conservative.
defaultMaxBytesPerBatch = 2 << 20
// Default logging interval (used if not specified in
// options)
defaultLoggingInterval = 1 * time.Minute
Expand Down

0 comments on commit 5aba90d

Please sign in to comment.