mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-08-08 09:42:06 +03:00
Do not emit blocked frames more than once
Summary: Until a flow control update arrives Reviewed By: mjoras Differential Revision: D55528849 fbshipit-source-id: 904543f3d04aae1cbbceb34f5723039dc5fb94e2
This commit is contained in:
committed by
Facebook GitHub Bot
parent
bf24fea2c8
commit
acfe58c9a8
@@ -1788,6 +1788,8 @@ TEST_F(QuicTransportTest, WriteFlowControl) {
|
||||
auto buf1 = buf->clone();
|
||||
buf1->trimEnd(50);
|
||||
stream->flowControlState.peerAdvertisedMaxOffset = 200;
|
||||
// Reset the pendingBlockedFrame as if we received a flow control update.
|
||||
stream->flowControlState.pendingBlockedFrame = false;
|
||||
EXPECT_CALL(*mockQLogger, addTransportStateUpdate(getFlowControlEvent(200)));
|
||||
conn.streamManager->updateWritableStreams(*stream);
|
||||
EXPECT_CALL(*socket_, write(_, _)).WillRepeatedly(Invoke(bufLength));
|
||||
|
Reference in New Issue
Block a user