Skip to content

fix: drain SSH child stderr in background thread - #2741

Merged
oferchen merged 1 commit into
masterfrom
fix/ssh-stderr-drain
Mar 16, 2026
Merged

oferchen merged 1 commit into
masterfrom
fix/ssh-stderr-drain

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Spawn a named background thread when SshConnection::split() is called to drain SSH child stderr, preventing pipe-buffer deadlocks when the child writes more than 64 KB to stderr. The thread reads line-by-line via BufReader and forwards to process stderr via eprintln. Joins cleanly on both wait() and Drop.

@github-actions github-actions Bot added the bug Something isn't working label Mar 16, 2026
@oferchen
oferchen merged commit 717dcfb into master Mar 16, 2026
32 checks passed
@oferchen
oferchen deleted the fix/ssh-stderr-drain branch March 16, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant