Skip to content

Commit

Permalink
Fix continuous data path mode RETRY edge case
Browse files Browse the repository at this point in the history
Summary: We need to reset the buf accessor here as well.

Reviewed By: sharmafb

Differential Revision: D67472070

fbshipit-source-id: 1700b38e448ca6194a7bd9c034cbbfb6bad727d5
  • Loading branch information
Matt Joras authored and facebook-github-bot committed Dec 19, 2024
1 parent f5de29c commit da45380
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions quic/client/state/ClientStateMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ std::unique_ptr<QuicClientConnectionState> undoAllClientStateForRetry(
newConn->earlyDataAppParamsGetter = std::move(conn->earlyDataAppParamsGetter);
newConn->happyEyeballsState = std::move(conn->happyEyeballsState);
newConn->flowControlState = std::move(conn->flowControlState);
newConn->bufAccessor = conn->bufAccessor;
newConn->pendingOneRttData.reserve(
newConn->transportSettings.maxPacketsToBuffer);
if (conn->congestionControllerFactory) {
Expand Down
2 changes: 2 additions & 0 deletions quic/fizz/client/test/QuicClientTransportTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ class QuicClientTransportIntegrationTest : public TestWithParam<TestingParams> {
auto transportSettings = client->getTransportSettings();
transportSettings.attemptEarlyData = true;
transportSettings.removeStreamAfterEomCallbackUnset = true;
transportSettings.dataPathType = DataPathType::ContinuousMemory;
transportSettings.batchingMode = QuicBatchingMode::BATCHING_MODE_GSO;
client->setTransportSettings(transportSettings);
return client;
}
Expand Down

0 comments on commit da45380

Please sign in to comment.