diff --git a/transports/quic/CHANGELOG.md b/transports/quic/CHANGELOG.md index a7ad810bdb6..fdd8c24b2a5 100644 --- a/transports/quic/CHANGELOG.md +++ b/transports/quic/CHANGELOG.md @@ -1,7 +1,11 @@ ## 0.9.3 - unreleased +- No longer report error when explicit closing of a QUIC endpoint succeeds. + See [PR 4621]. + - Support QUIC stateless resets for supported `libp2p_identity::Keypair`s. See [PR 4554]. +[PR 4621]: https://github.com/libp2p/rust-libp2p/pull/4621 [PR 4554]: https://github.com/libp2p/rust-libp2p/pull/4554 ## 0.9.2 diff --git a/transports/quic/src/lib.rs b/transports/quic/src/lib.rs index 494ecfdcddb..85fa3c7e3cb 100644 --- a/transports/quic/src/lib.rs +++ b/transports/quic/src/lib.rs @@ -91,6 +91,7 @@ pub enum Error { Io(#[from] std::io::Error), /// The task to drive a quic endpoint has crashed. + #[deprecated(since = "0.9.3", note = "No longer emitted")] #[error("Endpoint driver crashed")] EndpointDriverCrashed, diff --git a/transports/quic/src/transport.rs b/transports/quic/src/transport.rs index 16ffbc5a163..12126b865d2 100644 --- a/transports/quic/src/transport.rs +++ b/transports/quic/src/transport.rs @@ -588,7 +588,7 @@ impl Stream for Listener

{ return Poll::Ready(Some(event)); } Poll::Ready(None) => { - self.close(Err(Error::EndpointDriverCrashed)); + self.close(Ok(())); continue; } Poll::Pending => {}