Repository navigation
Handle unbracketed IPv6 daemon operands - #951
Merged
Merged
Conversation
7 tasks
oferchen
added a commit
that referenced
this pull request
Jun 10, 2026
…path Three independent fixes shake out interop failures from upstream rsync 3.4.3's testsuite that exercise daemon-side wire format on the receiver: - daemon-delete-stats (UTS-6): the daemon never set `do_stats` from the client's `--stats` flag, so the generator skipped emitting `NDX_DEL_STATS` during the goodbye phase and the sender's stats showed "Number of deleted files: 0". Wire `--stats` into both the daemon's long-form arg parser and the server-mode flag parser. - daemon-delete-stats (UTS-6): `delete_extraneous_files()` formed the filter check and itemize path as `dir_relative.join(name)`, which at the deletion root produced `./<name>`. A daemon-side `exclude = ?` rule then matched the `.` as a single-character directory component (via the descendant matcher `?/**`), suppressing legitimate top-level deletes. Strip the implicit `.` prefix when `dir_relative == "."`. - compress-zlib-insert (UTS-18): `ZlibTokenEncoder::see_token()` called `compress(..., Z_SYNC_FLUSH)` exactly once per 0xFFFF chunk. A 64 KiB incompressible matched-block insert emits stored-block output > `compress_buf` (CHUNK_SIZE * 2), leaving residue inside the deflate state. The next literal write picks up the trapped output and desynchronises the stream, matching upstream rsync's issue #951. Loop the Sync flush, discarding output until the chunk is consumed and the compressor partially fills the buffer (signalling no more pending output). Regression tests cover the daemon-side filter behaviour, the single-char-glob deletion case, and the large incompressible insert.
4 tasks
oferchen
added a commit
that referenced
this pull request
Jun 10, 2026
…path (#5520) * fix: forward --stats into daemon, drain Sync flush, normalize delete path Three independent fixes shake out interop failures from upstream rsync 3.4.3's testsuite that exercise daemon-side wire format on the receiver: - daemon-delete-stats (UTS-6): the daemon never set `do_stats` from the client's `--stats` flag, so the generator skipped emitting `NDX_DEL_STATS` during the goodbye phase and the sender's stats showed "Number of deleted files: 0". Wire `--stats` into both the daemon's long-form arg parser and the server-mode flag parser. - daemon-delete-stats (UTS-6): `delete_extraneous_files()` formed the filter check and itemize path as `dir_relative.join(name)`, which at the deletion root produced `./<name>`. A daemon-side `exclude = ?` rule then matched the `.` as a single-character directory component (via the descendant matcher `?/**`), suppressing legitimate top-level deletes. Strip the implicit `.` prefix when `dir_relative == "."`. - compress-zlib-insert (UTS-18): `ZlibTokenEncoder::see_token()` called `compress(..., Z_SYNC_FLUSH)` exactly once per 0xFFFF chunk. A 64 KiB incompressible matched-block insert emits stored-block output > `compress_buf` (CHUNK_SIZE * 2), leaving residue inside the deflate state. The next literal write picks up the trapped output and desynchronises the stream, matching upstream rsync's issue #951. Loop the Sync flush, discarding output until the chunk is consumed and the compressor partially fills the buffer (signalling no more pending output). Regression tests cover the daemon-side filter behaviour, the single-char-glob deletion case, and the large incompressible insert. * style: cargo fmt fix * fix: drop shadowed PathBuf import from deletion module * style: regroup hex literal digits to satisfy clippy
3 tasks
oferchen
added a commit
that referenced
this pull request
Jun 17, 2026
Pins the BufferedMap window-length clamp (UTS-18.g.1/.g.2/.g.3) via the public map_file API. Mirrors the upstream testsuite/compress-zlib-insert_test.py scenario (issue #951) at unit-test scope: a sub-MAX_MAP_SIZE basis must round-trip through map_ptr without tripping the "exceeds buffer length" guard, and the clamp must hold on cached re-entry, sliding-window walks, and the exact-fit boundary. Inline tests in crates/transfer/src/map_file/buffered.rs already cover the clamp invariant against fabricated state. This integration test pins the contract the four production map_ptr call sites depend on (token_loop.rs, response.rs, sync.rs, applicator.rs).
oferchen
added a commit
that referenced
this pull request
Jun 17, 2026
…5893) Pins the BufferedMap window-length clamp (UTS-18.g.1/.g.2/.g.3) via the public map_file API. Mirrors the upstream testsuite/compress-zlib-insert_test.py scenario (issue #951) at unit-test scope: a sub-MAX_MAP_SIZE basis must round-trip through map_ptr without tripping the "exceeds buffer length" guard, and the clamp must hold on cached re-entry, sliding-window walks, and the exact-fit boundary. Inline tests in crates/transfer/src/map_file/buffered.rs already cover the clamp invariant against fabricated state. This integration test pins the contract the four production map_ptr call sites depend on (token_loop.rs, response.rs, sync.rs, applicator.rs).
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…path (#5520) * fix: forward --stats into daemon, drain Sync flush, normalize delete path Three independent fixes shake out interop failures from upstream rsync 3.4.3's testsuite that exercise daemon-side wire format on the receiver: - daemon-delete-stats (UTS-6): the daemon never set `do_stats` from the client's `--stats` flag, so the generator skipped emitting `NDX_DEL_STATS` during the goodbye phase and the sender's stats showed "Number of deleted files: 0". Wire `--stats` into both the daemon's long-form arg parser and the server-mode flag parser. - daemon-delete-stats (UTS-6): `delete_extraneous_files()` formed the filter check and itemize path as `dir_relative.join(name)`, which at the deletion root produced `./<name>`. A daemon-side `exclude = ?` rule then matched the `.` as a single-character directory component (via the descendant matcher `?/**`), suppressing legitimate top-level deletes. Strip the implicit `.` prefix when `dir_relative == "."`. - compress-zlib-insert (UTS-18): `ZlibTokenEncoder::see_token()` called `compress(..., Z_SYNC_FLUSH)` exactly once per 0xFFFF chunk. A 64 KiB incompressible matched-block insert emits stored-block output > `compress_buf` (CHUNK_SIZE * 2), leaving residue inside the deflate state. The next literal write picks up the trapped output and desynchronises the stream, matching upstream rsync's issue #951. Loop the Sync flush, discarding output until the chunk is consumed and the compressor partially fills the buffer (signalling no more pending output). Regression tests cover the daemon-side filter behaviour, the single-char-glob deletion case, and the large incompressible insert. * style: cargo fmt fix * fix: drop shadowed PathBuf import from deletion module * style: regroup hex literal digits to satisfy clippy
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…5893) Pins the BufferedMap window-length clamp (UTS-18.g.1/.g.2/.g.3) via the public map_file API. Mirrors the upstream testsuite/compress-zlib-insert_test.py scenario (issue #951) at unit-test scope: a sub-MAX_MAP_SIZE basis must round-trip through map_ptr without tripping the "exceeds buffer length" guard, and the clamp must hold on cached re-entry, sliding-window walks, and the exact-fit boundary. Inline tests in crates/transfer/src/map_file/buffered.rs already cover the clamp invariant against fabricated state. This integration test pins the contract the four production map_ptr call sites depend on (token_loop.rs, response.rs, sync.rs, applicator.rs).
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
Testing
cargo test