mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-04-25 11:02:12 +00:00
Secio's handshake reports unexpected EOF errors in two places. Presumably because `std::io::ErrorKind::UnexpectedEof` did not exist when secio was first implemented, `ErrorKind::BrokenPipe` is used for this error. Since we nowadays have `UnexpectedEof` at our disposal, secio should use this more appropriate error kind.