From 986342ffb364900865b0d6ac46472f376f780f76 Mon Sep 17 00:00:00 2001 From: Khosrow Afroozeh Date: Mon, 12 Aug 2024 13:05:34 +0200 Subject: [PATCH] [CLIENT-3071] Increase info command max response buffer size to 64 MiB --- CHANGELOG.md | 7 +++++++ types/message.go | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69dc59e1..19f1d9af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Change History +## August 12 2024: v7.6.1 + + Minor improvement release. + +- **Improvements** + - [CLIENT-3071] Increase info command max response buffer size to 64 MiB. + ## July 19 2024: v7.6.0 Minor fix release. diff --git a/types/message.go b/types/message.go index ff140ef3..145e42ce 100644 --- a/types/message.go +++ b/types/message.go @@ -63,7 +63,7 @@ func NewMessage(mtype messageType, data []byte) *Message { } } -const maxAllowedBufferSize = 1024 * 1024 +const maxAllowedBufferSize = 64 * 1024 * 1024 // 64MiB max // Resize changes the internal buffer size for the message. func (msg *Message) Resize(newSize int64) error {