Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

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

Lukas Wirth0b53da18d579
diff --git a/crates/remote/src/transport/ssh.rs b/crates/remote/src/transport/ssh.rs
index db6a1971a7b..a8e4245b435 100644
--- a/crates/remote/src/transport/ssh.rs
+++ b/crates/remote/src/transport/ssh.rs
@@ -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?;