Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Releases: libp2p/go-libp2p-swarm

v0.4.0

19 Dec 04:36
cc3d3ff
Compare
Choose a tag to compare

Adds the context for OpenStream and NewStream, see libp2p/go-libp2p-core#172.

v0.3.0

02 Sep 18:39
v0.3.0
8493980
Compare
Choose a tag to compare

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

24 Jun 19:39
58c167a
Compare
Choose a tag to compare

This is a patch release to slim down the dependency tree a bit.

v0.2.7

05 Jun 11:47
7ada4e5
Compare
Choose a tag to compare

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

02 Jun 18:00
4e44cfc
Compare
Choose a tag to compare

Allow configuring swarm key sizes in the test swarm.

v0.2.4

15 May 13:33
34b2b47
Compare
Choose a tag to compare

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 and InterceptUpgraded.
  • when dialling, we call InterceptPeerDial and InterceptAddrDial.

v0.2.3

02 Apr 22:36
7694d47
Compare
Choose a tag to compare
  • 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 calling Timeout().
  • 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

19 Sep 05:52
v0.2.2
4f59859
Compare
Choose a tag to compare
  • Ensure test swarm closes the peerstore on close.
  • Update go-multiaddr.

v0.2.1

21 Aug 18:02
v0.2.1
bfc3909
Compare
Choose a tag to compare

Copy address list in InterfaceListenAddresses to avoid a data race.

v0.2.0

02 Aug 23:21
221d8d5
Compare
Choose a tag to compare
  • 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.