remote: Flush to stdin when writing to sftp (#42103)

https://github.com/zed-industries/zed/issues/42027#issuecomment-3497210172

Release Notes:

- Fixed ssh remoting potentially failing due to not flushing stdin to
sftp
This commit is contained in:
Lukas Wirth
2025-11-06 14:27:26 +00:00
committed by GitHub
parent 5ced3ef0fd
commit 0b53da18d5
+1 -1
View File
@@ -867,7 +867,7 @@ impl SshRemoteConnection {
if let Some(mut stdin) = child.stdin.take() {
use futures::AsyncWriteExt;
stdin.write_all(sftp_batch.as_bytes()).await?;
drop(stdin);
stdin.flush().await?;
}
let output = child.output().await?;