mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-30 19:21:19 +00:00
fix(webrtc): gracefully handle resets of individual connections
Fixes https://github.com/libp2p/rust-libp2p/issues/3574 Pull-Request: #3575.
This commit is contained in:
parent
dea6a8c4a9
commit
83ef657500
@ -1,7 +1,11 @@
|
|||||||
# 0.4.0-alpha.3 - unreleased
|
# 0.4.0-alpha.3 - unreleased
|
||||||
|
|
||||||
|
- Gracefully handle `ConnectionReset` error on individual connections, avoiding shutdown of the entire listener upon disconnect of a single client.
|
||||||
|
See [PR 3575].
|
||||||
|
|
||||||
- Migrate from `prost` to `quick-protobuf`. This removes `protoc` dependency. See [PR 3312].
|
- Migrate from `prost` to `quick-protobuf`. This removes `protoc` dependency. See [PR 3312].
|
||||||
|
|
||||||
|
[PR 3575]: https://github.com/libp2p/rust-libp2p/pull/3575
|
||||||
[PR 3312]: https://github.com/libp2p/rust-libp2p/pull/3312
|
[PR 3312]: https://github.com/libp2p/rust-libp2p/pull/3312
|
||||||
|
|
||||||
# 0.4.0-alpha.2
|
# 0.4.0-alpha.2
|
||||||
|
@ -398,8 +398,11 @@ impl UDPMuxNewAddr {
|
|||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Poll::Ready(Err(err)) if err.kind() == ErrorKind::TimedOut => {}
|
|
||||||
Poll::Pending => {}
|
Poll::Pending => {}
|
||||||
|
Poll::Ready(Err(err)) if err.kind() == ErrorKind::TimedOut => {}
|
||||||
|
Poll::Ready(Err(err)) if err.kind() == ErrorKind::ConnectionReset => {
|
||||||
|
log::debug!("ConnectionReset by remote client {err:?}")
|
||||||
|
}
|
||||||
Poll::Ready(Err(err)) => {
|
Poll::Ready(Err(err)) => {
|
||||||
log::error!("Could not read udp packet: {}", err);
|
log::error!("Could not read udp packet: {}", err);
|
||||||
return Poll::Ready(UDPMuxEvent::Error(err));
|
return Poll::Ready(UDPMuxEvent::Error(err));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user