diff --git a/src/frame.rs b/src/frame.rs index 3ccf7b3..63feb2e 100644 --- a/src/frame.rs +++ b/src/frame.rs @@ -63,7 +63,7 @@ fn from_read_error_to_io_error(e: quinn::ReadError) -> io::Error { match e { ReadError::Reset(_) => io::Error::from(io::ErrorKind::ConnectionReset), ReadError::ConnectionLost(e) => from_connection_error_to_io_error(e), - ReadError::ClosedStream => io::Error::new(io::ErrorKind::NotFound, "unknown stream"), + ReadError::ClosedStream => io::Error::new(io::ErrorKind::Other, "closed stream"), ReadError::IllegalOrderedRead => { io::Error::new(io::ErrorKind::InvalidInput, "illegal ordered read") }