Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set the max message size to 2MB #266

Merged
merged 1 commit into from
Feb 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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