Wait for the connection to be encrypted in `connect`
[?]
Nov 23, 2020, 9:34 AM
Y5HHIQXVHT3P7DNMG2G3UASKPLN4FBY7EY6ZSOWZBRJMPR6X6CGQCDependencies
- [2]
7FRJYUI6Reboot because of a bad change
Change contents
- edit in thrussh/src/client/mod.rs at line 795
let (encrypted_signal, encrypted_recv) = tokio::sync::oneshot::channel();let join = tokio::spawn(session.run(stream, handler, Some(encrypted_signal)));encrypted_recv.await.unwrap_or(()); - replacement in thrussh/src/client/mod.rs at line 801
join: tokio::spawn(session.run(stream, handler)),join, - edit in thrussh/src/client/mod.rs at line 810
mut encrypted_signal: Option<tokio::sync::oneshot::Sender<()>>, - replacement in thrussh/src/client/mod.rs at line 848
self = reply(self, &mut handler, &buf[..]).await?;self = reply(self, &mut handler, &mut encrypted_signal, &buf[..]).await?; - edit in thrussh/src/client/mod.rs at line 1061
sender: &mut Option<tokio::sync::oneshot::Sender<()>>, - edit in thrussh/src/client/mod.rs at line 1105
if let Some(sender) = sender.take() {sender.send(()).unwrap_or(());}