Bound stream receive reordering window
ci / test (push) Waiting to run
ci / fuzz-smoke (push) Waiting to run
ci / windows-client (push) Waiting to run
ci / package-release (linux-x86_64, ubuntu-latest) (push) Waiting to run
ci / package-release (macos-aarch64, macos-14) (push) Waiting to run
ci / package-release (macos-x86_64, macos-13) (push) Waiting to run
ci / package-release (windows-x86_64, windows-latest) (push) Waiting to run
ci / publish-gitea-release (push) Blocked by required conditions
ci / remote-bench (push) Waiting to run

This commit is contained in:
DuProcess
2026-07-12 23:48:46 -04:00
parent 7ebc6533a7
commit c4301f192c
3 changed files with 110 additions and 0 deletions
+8
View File
@@ -8110,6 +8110,14 @@ fn accept_stream_data(
) -> (Vec<Vec<u8>>, usize, u64) {
let stream_id = data.stream_id;
let expected = stream_next_recv_offset.entry(stream_id).or_insert(0);
if !dosh::transport::stream_data_within_receive_window(
*expected,
data.offset,
data.bytes.len(),
STREAM_INITIAL_WINDOW,
) {
return (Vec::new(), 0, *expected);
}
if data.offset < *expected {
return (Vec::new(), 0, *expected);
}