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:
@@ -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?;
|
||||
|
||||
Reference in New Issue
Block a user