- Honor ping interval in case of errors. Previously, we would immediately open another ping stream if the current one failed. See PR 4423.
-
Raise MSRV to 1.65. See PR 3715.
-
Remove deprecated items. See PR 3702.
-
Don't close connections on ping failures. To restore the previous behaviour, users should call
Swarm::close_connection
upon receiving aping::Event
with aping::Failure
. This also removes themax_failures
config option. See PR 3947.
-
Update to
libp2p-core
v0.39.0
. -
Update to
libp2p-swarm
v0.42.0
.
-
Update to
libp2p-core
v0.38.0
. -
Update to
libp2p-swarm
v0.41.0
. -
Replace
Behaviour
'sNetworkBehaviour
implementioninject_*
methods with the newon_*
methods. See PR 3011. -
Replace
Handler
'sConnectionHandler
implementioninject_*
methods with the newon_*
methods. See PR 3085. -
Update
rust-version
to reflect the actual MSRV: 1.62.0. See PR 3090.
-
Bump rand to 0.8 and quickcheck to 1. See PR 2857.
-
Deprecate types with
Ping
prefix. Prefer importing them via theping
namespace, i.e.libp2p::ping::Event
instead oflibp2p::ping::PingEvent
. See PR 2937. -
Update to
libp2p-core
v0.37.0
. -
Update to
libp2p-swarm
v0.40.0
. -
Deprecate
Config::with_keep_alive
. See PR 2859.
-
Update to
libp2p-swarm
v0.39.0
. -
Update to
libp2p-core
v0.36.0
.
-
Update to
libp2p-swarm
v0.38.0
. -
Expose
PROTOCOL_NAME
. See PR 2734. -
Update to
libp2p-core
v0.35.0
.
-
Update to
libp2p-core
v0.34.0
. -
Update to
libp2p-swarm
v0.37.0
.
-
Update to
libp2p-core
v0.33.0
. -
Update to
libp2p-swarm
v0.36.0
.
- Update to
libp2p-swarm
v0.35.0
.
-
Update to
libp2p-core
v0.32.0
. -
Update to
libp2p-swarm
v0.34.0
. -
Merge NetworkBehaviour's inject_* paired methods (see PR 2445).
-
Update dependencies.
-
Migrate to Rust edition 2021 (see PR 2339).
-
Use
instant
andfutures-timer
instead ofwasm-timer
(see PR 2245). -
Update dependencies.
-
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.