Repository navigation
feat(transfer): implement MSG_NO_SEND support for protocol >= 30 - #2512
Merged
Merged
Conversation
When the sender cannot open a file it was asked to transfer, it now sends MSG_NO_SEND with the file index instead of silently skipping. The receiver accumulates these indices via the multiplex reader so it can skip waiting for delta data for those files. Upstream: sender.c:354-369, io.c:1618-1627
oferchen
force-pushed
the
feat/msg-no-send-support
branch
from
February 27, 2026 03:49
fa781c0 to
a1fa644
Compare
oferchen
added a commit
that referenced
this pull request
May 1, 2026
feat(transfer): implement MSG_NO_SEND support for protocol >= 30
oferchen
added a commit
that referenced
this pull request
May 5, 2026
feat(transfer): implement MSG_NO_SEND support for protocol >= 30
5 tasks done
oferchen
added a commit
that referenced
this pull request
May 21, 2026
…SO-5) Adds the ZSO-5 (task #2513) regression suite at crates/matching/tests/zsync_wire_parity.rs. For each ZSO-1..4 optimization, constructs a basis + source pair designed to exercise that optimization's code path, runs generate_delta, serialises the DeltaScript through the production wire-format encoder (protocol::wire::write_token_stream), and pins the resulting bytes against (a) determinism across repeated runs and (b) round-trip reconstruction of the source via apply_delta. Active tests: - bithash_optimization_preserves_wire_bytes (ZSO-1, task #2510, shipped in PR #3737) - 16 KiB random basis + disjoint random source so every rolling probe walks the bithash reject path. Asserts all-literal script and deterministic wire bytes. - seq_match_optimization_preserves_wire_bytes (ZSO-2, task #2510, landing on PR #4624) - 84-block basis used as its own source so every adjacent-block hint fires. Asserts single fat Copy token and deterministic wire bytes. Test was authored to remain green on master (extend_run + script-level coalescing already produce the pinned shape) and stays green when PR #4624 swaps the probe path. - all_active_zso_fixtures_are_deterministic - cross-cutting check that signals "matching pipeline became non-deterministic" as a single failure. Stub tests (#[ignore]): - hash_chain_prune_preserves_wire_bytes (ZSO-3, task #2511) - compact_rolling_key_preserves_wire_bytes (ZSO-4, task #2512) The stubs are structured so the only step required when those optimizations land is to drop #[ignore] and swap the placeholder basis/source for the duplicate-heavy / small-basis corpora documented in the test rustdoc. Complements the protocol-layer golden tests at crates/protocol/tests/golden_protocol_v28_mplex_delta_stats.rs which pin the token frame format but do not synthesize ZSO-specific basis fixtures. No production code changes. No new dependencies (uses a small in-test LCG to keep the corpus deterministic). All 321 matching tests pass; 407 protocol golden tests pass.
oferchen
added a commit
that referenced
this pull request
May 21, 2026
…SO-5) (#4627) Adds the ZSO-5 (task #2513) regression suite at crates/matching/tests/zsync_wire_parity.rs. For each ZSO-1..4 optimization, constructs a basis + source pair designed to exercise that optimization's code path, runs generate_delta, serialises the DeltaScript through the production wire-format encoder (protocol::wire::write_token_stream), and pins the resulting bytes against (a) determinism across repeated runs and (b) round-trip reconstruction of the source via apply_delta. Active tests: - bithash_optimization_preserves_wire_bytes (ZSO-1, task #2510, shipped in PR #3737) - 16 KiB random basis + disjoint random source so every rolling probe walks the bithash reject path. Asserts all-literal script and deterministic wire bytes. - seq_match_optimization_preserves_wire_bytes (ZSO-2, task #2510, landing on PR #4624) - 84-block basis used as its own source so every adjacent-block hint fires. Asserts single fat Copy token and deterministic wire bytes. Test was authored to remain green on master (extend_run + script-level coalescing already produce the pinned shape) and stays green when PR #4624 swaps the probe path. - all_active_zso_fixtures_are_deterministic - cross-cutting check that signals "matching pipeline became non-deterministic" as a single failure. Stub tests (#[ignore]): - hash_chain_prune_preserves_wire_bytes (ZSO-3, task #2511) - compact_rolling_key_preserves_wire_bytes (ZSO-4, task #2512) The stubs are structured so the only step required when those optimizations land is to drop #[ignore] and swap the placeholder basis/source for the duplicate-heavy / small-basis corpora documented in the test rustdoc. Complements the protocol-layer golden tests at crates/protocol/tests/golden_protocol_v28_mplex_delta_stats.rs which pin the token frame format but do not synthesize ZSO-specific basis fixtures. No production code changes. No new dependencies (uses a small in-test LCG to keep the corpus deterministic). All 321 matching tests pass; 407 protocol golden tests pass.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…SO-5) (#4627) Adds the ZSO-5 (task #2513) regression suite at crates/matching/tests/zsync_wire_parity.rs. For each ZSO-1..4 optimization, constructs a basis + source pair designed to exercise that optimization's code path, runs generate_delta, serialises the DeltaScript through the production wire-format encoder (protocol::wire::write_token_stream), and pins the resulting bytes against (a) determinism across repeated runs and (b) round-trip reconstruction of the source via apply_delta. Active tests: - bithash_optimization_preserves_wire_bytes (ZSO-1, task #2510, shipped in PR #3737) - 16 KiB random basis + disjoint random source so every rolling probe walks the bithash reject path. Asserts all-literal script and deterministic wire bytes. - seq_match_optimization_preserves_wire_bytes (ZSO-2, task #2510, landing on PR #4624) - 84-block basis used as its own source so every adjacent-block hint fires. Asserts single fat Copy token and deterministic wire bytes. Test was authored to remain green on master (extend_run + script-level coalescing already produce the pinned shape) and stays green when PR #4624 swaps the probe path. - all_active_zso_fixtures_are_deterministic - cross-cutting check that signals "matching pipeline became non-deterministic" as a single failure. Stub tests (#[ignore]): - hash_chain_prune_preserves_wire_bytes (ZSO-3, task #2511) - compact_rolling_key_preserves_wire_bytes (ZSO-4, task #2512) The stubs are structured so the only step required when those optimizations land is to drop #[ignore] and swap the placeholder basis/source for the duplicate-heavy / small-basis corpora documented in the test rustdoc. Complements the protocol-layer golden tests at crates/protocol/tests/golden_protocol_v28_mplex_delta_stats.rs which pin the token frame format but do not synthesize ZSO-specific basis fixtures. No production code changes. No new dependencies (uses a small in-test LCG to keep the corpus deterministic). All 321 matching tests pass; 407 protocol golden tests pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MSG_NO_SENDwith the file index (protocol >= 30) instead of silently skippingMSG_NO_SENDindices viaMultiplexReaderso it can skip waiting for delta dataio_errorflags (IOERR_VANISHEDfor NotFound,IOERR_GENERALotherwise)Changes
MSG_NO_SENDviaServerWriter(both delta and whole-file paths)no_send_indicesfield toMultiplexReader, handleMSG_NO_SENDframes, expose viatake_no_send_indices()onServerReadersend_no_send()method onServerWriterUpstream Reference
sender.c:354-369: sender sendsMSG_NO_SENDwhen file open fails andprotocol_version >= 30io.c:1618-1627: receiver-sideMSG_NO_SENDhandlingTest plan
MultiplexReaderMSG_NO_SEND handling