1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-24 04:01:07 +03:00
Commit Graph

4 Commits

Author SHA1 Message Date
Aman Sharma
132a6b821c Make an allBytesAckedTill function
Summary: With reliable resets, we can only safely close a stream once all bytes until the reliable size have been ACKed by the peer. We're going to use this helper function to aid us in that.

Reviewed By: mjoras

Differential Revision: D66781309

fbshipit-source-id: 66094929b53c9eab3185e05b8a033b112577b60b
2024-12-10 16:39:37 -08:00
Aman Sharma
c59b3bf651 Change removeAfter offset to removeStartingAt
Summary: Some of the logic in subsequent diffs becomes a little easier if we change the "remove after" to "remove starting at", because we don't have to subtract 1 off of the reliable reset offset before passing it into these functions.

Reviewed By: jbeshay

Differential Revision: D66275065

fbshipit-source-id: 54a92dde7b23d09a1f8f59bfeabbec4fb149518a
2024-11-27 13:03:27 -08:00
Aman Sharma
f72ceb80ca Functionality for removals after specified offset [part 2]
Summary: When we send a reliable reset, we don't want to reset the entire `writeBufMeta`, `retransmissionBufMetas`, and `lossBufMetas`. We only want to reset them up to the `reliableSize`. I'm making helper functions to do this.

Reviewed By: jbeshay

Differential Revision: D66120070

fbshipit-source-id: 588db71b846247a9a2316f46ca6c6caef9246ba9
2024-11-20 17:17:46 -08:00
Aman Sharma
fb2c43078d Functionality for removals after specified offset [part 1]
Summary: When we send a reliable reset, we don't want to reset the entire `writeBuffer`, `retransmissionBuffer`, `lossBuffer`, and `pendingWrites`. We only want to reset them up to the `reliableSize`. I'm making helper functions to do this.

Reviewed By: jbeshay

Differential Revision: D64907982

fbshipit-source-id: ad9256638f5e0cb5f7c038e2c9d12253a7776b2d
2024-11-20 11:29:38 -08:00