Repository navigation
Add remote fallback execution for remote operands - #905
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| let stdout_data = match stdout_thread.join() { | ||
| Ok(Ok(data)) => data, | ||
| Ok(Err(error)) => { | ||
| let message = rsync_error!( | ||
| 1, | ||
| format!("failed to read stdout from fallback rsync: {error}") | ||
| ) |
There was a problem hiding this comment.
Stream fallback stdout/stderr instead of buffering
The fallback code reads the child’s stdout and stderr into vectors via stdout_thread.join() and only forwards them after the process has exited (later at stdout.write_all(&stdout_data) and stderr.write_all(&stderr_data)). Because nothing is written to the user until the subprocess completes, any interactive prompts (password entry, host key verification) or progress output from the real rsync binary are invisible while the transfer is running. This makes remote copies appear hung and prevents users from responding to prompts. The command should forward data as it arrives rather than waiting for completion.
Useful? React with 👍 / 👎.
Summary
Testing