Fixing asynchronicity problems in SSH
[?]
Nov 25, 2020, 3:37 PM
QE64ATLZWMKHYABCD3VA547PYXCK6YN3K7RE2TX3SCQNKG7XLVAQCDependencies
- [2]
I52XSRUHMassive cleanup, and simplification - [3]
UDHP4ZVBFixing SSH asynchronicity issues - [4]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting).
Change contents
- edit in pijul/src/remote/ssh.rs at line 266
// type FutureUnit = futures::future::Ready<Result<(Self, Session), anyhow::Error>>; - edit in pijul/src/remote/ssh.rs at line 271
// futures::future::ready(Ok((self, session))) - edit in pijul/src/remote/ssh.rs at line 421
}State::Channel { ref mut sender } => {debug!("state channel");sender.send(data).await? - edit in pijul/src/remote/ssh.rs at line 426
State::Channel { ref mut sender } => sender.send(data).await?, - edit in pijul/src/remote/ssh.rs at line 433
debug!("state archive"); - edit in pijul/src/remote/ssh.rs at line 740
debug!("receiving channel"); - edit in pijul/src/remote/ssh.rs at line 742
debug!("msg = {:?}", msg.len()); - edit in pijul/src/remote/ssh.rs at line 744
debug!("break"); - edit in pijul/src/remote/ssh.rs at line 748
debug!("from dump done"); - edit in pijul/src/remote/ssh.rs at line 757
self.c.data(format!("change {}\n", h.to_base32()).as_bytes()).await?; - edit in pijul/src/remote/ssh.rs at line 761
self.c.data(format!("change {}\n", h.to_base32()).as_bytes()).await?; - replacement in pijul/src/remote/ssh.rs at line 765
debug!("hashes = {:?}", hashes);debug!("hashes = {:#?}", hashes); - replacement in pijul/src/remote/ssh.rs at line 767
self.download_changes(&hashes, &mut send, &mut repo.changes_dir, false)self.download_changes(&hashes, &mut send, &mut repo.changes_dir, true) - edit in pijul/src/commands/clone.rs at line 88
remote.finish().await?;