Summary:
Previously,
* `RawBuf` was a typealias for `std::unique_ptr<folly::IOBuf>`
* `Buf` was a typealias for `folly::IOBuf`
In this diff,
* `Buf` is a typealias for `folly::IOBuf`
* `BufPtr` is a typealias for `std::unique_ptr<folly::IOBuf>`
Reviewed By: hanidamlaj
Differential Revision: D73206576
fbshipit-source-id: 454bf6ccfce3d6571e5e931889263ed98cc24af3
Summary: With reliable resets, we don't want to drop the entire `readBuffer`. Rather, we want to discard data that doesn't have to be reliably delivered.
Reviewed By: jbeshay
Differential Revision: D67766227
fbshipit-source-id: f8b0d1a51db3b84ad549c09021a0c1490f2b1c23
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
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
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
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