1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-08-08 09:42:06 +03:00

Integrate RangeChain into write path of QUIC stack

Summary: See title

Reviewed By: mjoras

Differential Revision: D58216871

fbshipit-source-id: 9afc08946a676ec967c998416a6470d4884af550
This commit is contained in:
Aman Sharma
2024-08-15 05:46:08 -07:00
committed by Facebook GitHub Bot
parent b23e5027ea
commit bc386475e5
40 changed files with 496 additions and 276 deletions

View File

@@ -4682,7 +4682,9 @@ TEST_P(
auto streamId = transport->createBidirectionalStream().value();
const auto& conn = transport->transportConn;
auto stream = transport->getStream(streamId);
stream->writeBuffer.append(IOBuf::copyBuffer("hello"));
auto dataBuf = IOBuf::copyBuffer("hello");
stream->pendingWrites.append(dataBuf);
stream->writeBuffer.append(std::move(dataBuf));
// Insert streamId into the list.
conn->streamManager->addWritable(*stream);
@@ -4744,7 +4746,9 @@ TEST_P(
auto streamId = transport->createBidirectionalStream().value();
const auto& conn = transport->transportConn;
auto stream = transport->getStream(streamId);
stream->writeBuffer.append(IOBuf::copyBuffer("hello"));
auto dataBuf = IOBuf::copyBuffer("hello");
stream->pendingWrites.append(dataBuf);
stream->writeBuffer.append(std::move(dataBuf));
// Insert streamId into the list.
conn->streamManager->addWritable(*stream);
@@ -4778,7 +4782,9 @@ TEST_P(
auto streamId = transport->createBidirectionalStream().value();
const auto& conn = transport->transportConn;
auto stream = transport->getStream(streamId);
stream->writeBuffer.append(IOBuf::copyBuffer("hello"));
auto dataBuf = IOBuf::copyBuffer("hello");
stream->pendingWrites.append(dataBuf);
stream->writeBuffer.append(std::move(dataBuf));
// Insert streamId into the list.
conn->streamManager->addWritable(*stream);
@@ -4816,7 +4822,9 @@ TEST_P(
auto streamId = transport->createBidirectionalStream().value();
const auto& conn = transport->transportConn;
auto stream = transport->getStream(streamId);
stream->writeBuffer.append(IOBuf::copyBuffer("hello"));
auto dataBuf = IOBuf::copyBuffer("hello");
stream->pendingWrites.append(dataBuf);
stream->writeBuffer.append(std::move(dataBuf));
// Insert streamId into the list.
conn->streamManager->addWritable(*stream);
@@ -4882,7 +4890,9 @@ TEST_P(
const auto& conn = transport->transportConn;
auto stream = transport->getStream(streamId);
std::string testString = "hello";
stream->writeBuffer.append(IOBuf::copyBuffer(testString));
auto dataBuf = IOBuf::copyBuffer(testString);
stream->pendingWrites.append(dataBuf);
stream->writeBuffer.append(std::move(dataBuf));
conn->flowControlState.sumCurStreamBufferLen = testString.length();
// Insert streamId into the list.
@@ -4950,7 +4960,9 @@ TEST_P(
auto streamId = transport->createBidirectionalStream().value();
const auto& conn = transport->transportConn;
auto stream = transport->getStream(streamId);
stream->writeBuffer.append(IOBuf::copyBuffer("hello"));
auto dataBuf = IOBuf::copyBuffer("hello");
stream->pendingWrites.append(dataBuf);
stream->writeBuffer.append(std::move(dataBuf));
// Insert streamId into the list.
conn->streamManager->addWritable(*stream);