This repository has been archived by the owner on May 26, 2022. It is now read-only.
Releases: libp2p/go-libp2p-swarm
Releases · libp2p/go-libp2p-swarm
v0.4.0
Adds the context for OpenStream
and NewStream
, see libp2p/go-libp2p-core#172.
v0.3.0
This release updates to go-libp2p-core 0.7.0. This includes significant breaking changes to the stream interface that you must read about in https://github.com/libp2p/go-libp2p-core/releases/tag/v0.7.0.
v0.2.8
v0.2.7
This release incorporates interface change introduced in network.Conn
and network.Stream
by go-libp2p-core v0.6.0.
It adds an ID() string
method to both structs:
Conn#ID()
returns a string of format<peerid[0:10]>-<unique, incrementing ordinal>
.Stream#ID()
returns a string of format<conn_id-<unique, incrementing ordinal>
.
We now also record the opening timestamp of connections and streams under the network.Stat
struct.
v0.2.6
v0.2.4
This release introduces support for connection gating. Refer to the release notes of go-libp2p-core v0.5.4 for more information.
The swarm calls the Connection Gater at these checkpoints:
- when adding an inbound or outbound connection to its internal state, we call
InterceptAddrDial
andInterceptUpgraded
. - when dialling, we call
InterceptPeerDial
andInterceptAddrDial
.
v0.2.3
- Implement the Timeout interface on dial errors. It's now possible to check if a dial error is due to a timeout by casting to an interface implementing
Timeout() bool
and callingTimeout()
. - Improve errors when the context is canceled and/or the swarm shuts down.
- Fire listener close events.
- Don't cancel outbound dials when we receive an inbound connection. When this happens in practice, it can cause both sides to cancel outbound dials. Fixes #79.
- Don't return an error from
InterfaceListenAddresses
if we aren't listening on any addresses. Instead, simply return no addresses. - Backoff multiaddrs instead of entire peers. That way, if we learn better addresses for a peer, we'll try dialing them again.
- Expire backoffs instead of leaking them.
v0.2.2
v0.2.1
v0.2.0
- Bumps go-libp2p-core to v0.2.0 and go-libp2p-testing v0.1.0. NOTE: The minimum required strength for RSA keys is now 2048 bits. To override this, you can set the environment variable
LIBP2P_ALLOW_WEAK_RSA_KEYS
to any non-empty value, lowering the requirement to 512 bits. This is inadvisable and should only be done in tests, if at all.