-
Make default features of
libp2p-core
optional. PR 2181 -
Update dependencies.
-
Don't close connection if ping protocol is unsupported by remote. Previously, a failed protocol negotation for ping caused a force close of the connection. As a result, all nodes in a network had to support ping. To allow networks where some nodes don't support ping, we now emit
PingFailure::Unsupported
once for every connection on which ping is not supported.In case you want to stick with the old behavior, you need to close the connection manually on
PingFailure::Unsupported
. -
Rename types as per discussion 2174.
Ping
has been renamed toBehaviour
. ThePing
prefix has been removed from various types likePingEvent
. Users should prefer importing the ping protocol as a module (use libp2p::ping;
), and refer to its types viaping::
. For example:ping::Behaviour
orping::Event
.
- Update dependencies.
- Update
libp2p-swarm
.
- Update
libp2p-swarm
.
- Update dependencies.
- Update
libp2p-swarm
andlibp2p-core
.
- Update
libp2p-swarm
andlibp2p-core
.
- Update dependencies.
-
Update
libp2p-swarm
andlibp2p-core
. -
Ensure the outbound ping is flushed before awaiting the response. Otherwise the behaviour depends on implementation details of the stream muxer used. The current behaviour resulted in stalls with Mplex.
- Update
libp2p-swarm
andlibp2p-core
.
-
Refactor the ping protocol for conformity by (re)using a single substream for outbound pings, addressing #1601.
-
Bump
libp2p-core
andlibp2p-swarm
dependencies.
- Updated dependencies.
- Updated dependencies.
- Close substream in inbound upgrade PR 1606.