Skip to content

Commit

Permalink
shadowsocks: report non-EOF error
Browse files Browse the repository at this point in the history
  • Loading branch information
eycorsican committed May 7, 2021
1 parent ecccc94 commit bea70ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions leaf/src/proxy/shadowsocks/shadow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ where
if let Err(e) = ready!(me.poll_read_exact(cx, read_size)) {
if e.kind() == io::ErrorKind::UnexpectedEof {
return Poll::Ready(Ok(()));
} else {
return Poll::Ready(Err(e));
}
}
let dec = me.dec.as_mut().expect("uninitialized cipher");
Expand Down

0 comments on commit bea70ae

Please sign in to comment.