You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// control frames have priority over message frames
379
+
// we can send a control frame if:
380
+
// - there is no message frame in the queue, or the first message frame is between frames (all bytes sent are acked)
381
+
// - the control frame is not finished (not sent yet)
382
+
// - there is enough space to send the control frame (control frames are small, at most 129 bytes, so we can assume that if there is space to send it, it can be sent in one go)
383
+
if (_messageQueue.empty() || _messageQueue.front().betweenFrames()) {
0 commit comments