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