mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-08-08 09:42:06 +03:00
Back out "If there's lost data, we have data to write."
Summary: This is causing empty write loops for some reason. Reviewed By: jbeshay, lnicco Differential Revision: D32990291 fbshipit-source-id: 2a183d591de54c7fe0ca54aea828a697a4cd9af0
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1e7287fcdb
commit
5b9a9705a0
@@ -270,17 +270,7 @@ TEST_F(QuicTransportTest, NotAppLimitedWithLoss) {
|
||||
|
||||
auto stream = transport_->createBidirectionalStream().value();
|
||||
auto lossStream = transport_->createBidirectionalStream().value();
|
||||
auto lossStreamState = conn.streamManager->findStream(lossStream);
|
||||
ASSERT_TRUE(lossStreamState);
|
||||
auto largeBuf = folly::IOBuf::createChain(conn.udpSendPacketLen * 20, 4096);
|
||||
auto curBuf = largeBuf.get();
|
||||
do {
|
||||
curBuf->append(curBuf->capacity());
|
||||
curBuf = curBuf->next();
|
||||
} while (curBuf != largeBuf.get());
|
||||
lossStreamState->lossBuffer.emplace_back(std::move(largeBuf), 31, false);
|
||||
conn.streamManager->updateWritableStreams(*lossStreamState);
|
||||
conn.streamManager->updateLossStreams(*lossStreamState);
|
||||
conn.streamManager->addLoss(lossStream);
|
||||
transport_->writeChain(
|
||||
stream, IOBuf::copyBuffer("An elephant sitting still"), false, nullptr);
|
||||
EXPECT_CALL(*rawCongestionController, setAppLimited()).Times(0);
|
||||
|
Reference in New Issue
Block a user