From 424cb65e7ba96725919676f01ac37d8310c8a604 Mon Sep 17 00:00:00 2001 From: sawka Date: Tue, 24 Mar 2026 12:03:39 -0700 Subject: [PATCH] increase buffer size for stream to lines to accomodate oversize packets --- pkg/util/utilfn/streamtolines.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/util/utilfn/streamtolines.go b/pkg/util/utilfn/streamtolines.go index 51758465da..5cbde2bb16 100644 --- a/pkg/util/utilfn/streamtolines.go +++ b/pkg/util/utilfn/streamtolines.go @@ -20,7 +20,9 @@ type lineBuf struct { inLongLine bool } -const maxLineLength = 128 * 1024 +// needs to be large enough to read the largest RPC packet +// there are some legacy file transfer packets that can send up to 32m (base64 encoded) +const maxLineLength = 64 * 1024 * 1024 func ReadLineWithTimeout(ch chan LineOutput, timeout time.Duration) (string, error) { select {