From f8d9b76609f365c6a1c3ea565a258d5cddf7d93f Mon Sep 17 00:00:00 2001 From: Martin Boisvert Date: Tue, 16 Aug 2022 12:37:08 -0400 Subject: [PATCH] Add check for _maxFrame > 0 --- src/connectionimpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connectionimpl.cpp b/src/connectionimpl.cpp index 9ef5ce06..a08bca1a 100644 --- a/src/connectionimpl.cpp +++ b/src/connectionimpl.cpp @@ -389,7 +389,7 @@ bool ConnectionImpl::send(const Frame &frame) // if the frame is bigger than we allow on the connection // it is impossible to send out this frame successfully - if (frame.totalSize() > _maxFrame) return false; + if (_maxFrame > 0 && frame.totalSize() > _maxFrame) return false; // are we still setting up the connection? if ((_state == state_connected && _queue.empty()) || frame.partOfHandshake())