pijul nest
guest [sign in]

If tokio::select! returns an error, return it

[?]
Dec 9, 2020, 3:23 PM
432ETREANWLRALMXK2WRMGRYET2SIGPAZ2WWT3WEVDUOGA4F3PNAC

Dependencies

  • [2] KNLLUDOI Correct usage of `tokio::select!`
  • [3] 7FRJYUI6 Reboot because of a bad change
  • [4] V3BRP7LQ Avoid polling the reading future again after disconnection

Change contents

  • replacement in thrussh/src/server/mod.rs at line 495
    [3.219017][2.808:869]()
    Ok((_, stream_read, buffer)) = &mut reading => {
    [3.219017]
    [3.219101]
    r = &mut reading => {
    let (stream_read, buffer) = match r {
    Ok((_, stream_read, buffer)) => (stream_read, buffer),
    Err(e) => return Err(e)
    };
  • replacement in thrussh/src/client/mod.rs at line 843
    [3.359012][2.1803:1868]()
    Ok((_, stream_read, buffer)) = &mut reading => {
    [3.359012]
    [2.1868]
    r = &mut reading => {
    let (stream_read, buffer) = match r {
    Ok((_, stream_read, buffer)) => (stream_read, buffer),
    Err(e) => return Err(e)
    };