Skip to content

Ensure binary negotiation flushes client advertisement - #353

Merged
oferchen merged 1 commit into
masterfrom
document-rsync-project-structure-and-protocol
Oct 17, 2025
Merged

oferchen merged 1 commit into
masterfrom
document-rsync-project-structure-and-protocol

Conversation

@oferchen

@oferchen oferchen commented Oct 17, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • flush the client protocol advertisement during binary negotiation to match upstream handshakes
  • extend transport tests with flush-count instrumentation and cover the new behavior
  • update session integration tests to account for the flushed advertisement

Testing

  • cargo test

@oferchen
oferchen merged commit 49bc5ac into master Oct 17, 2025
@oferchen
oferchen deleted the document-rsync-project-structure-and-protocol branch October 17, 2025 09:19
oferchen added a commit that referenced this pull request Feb 22, 2026
Extract read_early_input_file() that reads --early-input file content
up to EARLY_INPUT_MAX_SIZE (5120 bytes, matching upstream). Handles
partial reads, silent truncation of oversized files, empty files, and
missing file errors with appropriate exit codes.
oferchen added a commit that referenced this pull request Feb 22, 2026
Extract read_early_input_file() that reads --early-input file content
up to EARLY_INPUT_MAX_SIZE (5120 bytes, matching upstream). Handles
partial reads, silent truncation of oversized files, empty files, and
missing file errors with appropriate exit codes.
oferchen added a commit that referenced this pull request May 1, 2026
Extract read_early_input_file() that reads --early-input file content
up to EARLY_INPUT_MAX_SIZE (5120 bytes, matching upstream). Handles
partial reads, silent truncation of oversized files, empty files, and
missing file errors with appropriate exit codes.
oferchen added a commit that referenced this pull request May 5, 2026
Extract read_early_input_file() that reads --early-input file content
up to EARLY_INPUT_MAX_SIZE (5120 bytes, matching upstream). Handles
partial reads, silent truncation of oversized files, empty files, and
missing file errors with appropriate exit codes.
oferchen added a commit that referenced this pull request Nov 15, 2026
…rd-link detection (#277) (#8387)

## Summary
- **#311 (`crates/platform/src/signal.rs`):** Factor Windows console
control event dispatch out of the `unsafe extern "system" fn handler`
into `dispatch_console_ctrl(ctrl_type, shutdown, graceful) -> bool` with
compile-time `const` assertions against Win32 `CTRL_*_EVENT` constants
and cross-platform unit tests.
- **#277 (`crates/fast_io/src/same_fs.rs`,
`crates/engine/src/local_copy/hard_links/windows.rs`,
`crates/engine/src/local_copy/executor/file/copy/links.rs`):**
- Add `fast_io::same_fs::FileIdentity` and `file_identity(path)` sharing
a single `windows_file_info` (`GetFileInformationByHandle`) helper on
Windows and `symlink_metadata` on Unix.
- Implement Windows `HardLinkTracker` (`existing_target_for_path` /
`record_for_path`) keyed by `(volume_id, file_index)` when `nlink > 1`,
and wire `source` at local-copy call sites.
- Implement `is_already_hardlinked(destination, target)` via
`fast_io::same_fs::file_identity` on both Unix and Windows.
- Note from audit: **#407** (`test_copy_partial_eof` temp-file
pid-unique naming) was already fixed in `7bc2964a4` (#8139), and
**#353** (required Windows CI full workspace test surface) landed in
`c88299623` (#8316).

## Verification
- `cargo fmt --all -- --check`
- `cargo test --locked -p platform`: 88 passed, 0 failed
- `cargo test --locked -p fast_io --lib same_fs`: 6 passed, 0 failed
(1111 filtered out)
- `cargo test --locked -p engine --lib local_copy::hard_links`: 50
passed, 0 failed (4559 filtered out)
- `cargo clippy --locked -p platform -p fast_io -p engine --all-targets
-- -D warnings`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant