Add check for _maxFrame > 0
This commit is contained in:
parent
c273d93625
commit
f8d9b76609
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue