From e17ffd67fa5f678cf2f18c085f05a540885b540d Mon Sep 17 00:00:00 2001 From: groob Date: Mon, 26 Feb 2018 16:30:06 -0500 Subject: [PATCH] set the max message size to 2MB Fixes #265 --- osquery/extension.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/osquery/extension.go b/osquery/extension.go index b58af86db..a670d817c 100644 --- a/osquery/extension.go +++ b/osquery/extension.go @@ -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