From 07631f4628bc9184e896868ff0a6e2ffae53dde7 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Sat, 4 Dec 2021 11:15:07 +0400 Subject: [PATCH] reduce the maximum read buffer size from 64 to 1 kB Now that ls is removed, there's no need for super large messages any more. --- multistream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multistream.go b/multistream.go index ba9b2ac..bc97831 100644 --- a/multistream.go +++ b/multistream.go @@ -352,7 +352,7 @@ func lpReadBuf(r io.Reader) ([]byte, error) { return nil, err } - if length > 64*1024 { + if length > 1024 { return nil, ErrTooLarge }