Skip to content

Commit

Permalink
Merge pull request #476 from boimart1/bugfix/handle_zero_max_frame
Browse files Browse the repository at this point in the history
Handle max-frame=0 correctly
  • Loading branch information
EmielBruijntjes authored Sep 11, 2022
2 parents b893755 + f8d9b76 commit 7142d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connectionimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 7142d45

Please sign in to comment.