pijul nest
guest [sign in]

Wait for the connection to be encrypted in `connect`

[?]
Nov 23, 2020, 9:34 AM
Y5HHIQXVHT3P7DNMG2G3UASKPLN4FBY7EY6ZSOWZBRJMPR6X6CGQC

Dependencies

  • [2] 7FRJYUI6 Reboot because of a bad change

Change contents

  • edit in thrussh/src/client/mod.rs at line 795
    [2.358167]
    [2.358167]
    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
    [2.358228][2.358228:358286]()
    join: tokio::spawn(session.run(stream, handler)),
    [2.358228]
    [2.358286]
    join,
  • edit in thrussh/src/client/mod.rs at line 810
    [2.358451]
    [2.358451]
    mut encrypted_signal: Option<tokio::sync::oneshot::Sender<()>>,
  • replacement in thrussh/src/client/mod.rs at line 848
    [2.359984][2.359984:360055]()
    self = reply(self, &mut handler, &buf[..]).await?;
    [2.359984]
    [2.360055]
    self = reply(self, &mut handler, &mut encrypted_signal, &buf[..]).await?;
  • edit in thrussh/src/client/mod.rs at line 1061
    [2.369513]
    [2.369513]
    sender: &mut Option<tokio::sync::oneshot::Sender<()>>,
  • edit in thrussh/src/client/mod.rs at line 1105
    [2.371233]
    [2.371233]
    if let Some(sender) = sender.take() {
    sender.send(()).unwrap_or(());
    }