Skip to content

Releases: libp2p/go-libp2p

v0.28.1

20 Jun 16:13
Compare
Choose a tag to compare

What's Changed

  • fix: in the swarm move Connectedness emit after releasing conns #2373
  • identify: set stream deadlines for Identify and Identify Push streams #2382

Full Changelog: v0.28.0...v0.28.1

v0.27.7

19 Jun 20:53
68ad5ea
Compare
Choose a tag to compare

What's Changed

  • fix: in the swarm move Connectedness emit after releasing conns #2373
  • identify: set stream deadlines for Identify and Identify Push streams #2382

Full Changelog: v0.27.6...v0.27.7

v0.28.0

12 Jun 18:02
703c3a4
Compare
Choose a tag to compare

🔦 Highlights

Smart Dialing

This release introduces smart dialing logic. Currently, libp2p dials all addresses of a remote peer in parallel, and
aborts all outstanding dials as soon as the first one succeeds.
Dialing many addresses in parallel creates a lot of churn on the client side, and unnecessary load on the network and
on the server side, and is heavily discouraged by the networking community (see RFC 8305 for example).

When connecting to a peer we first determine the order to dial its addresses. This ranking logic considers a number of corner cases
described in detail in the documentation of the swarm package (swarm.DefaultDialRanker).
At a high level, this is what happens:

  • If a peer offers a WebTransport and a QUIC address (on the same IP:port), the QUIC address is preferred.
  • If a peer has a QUIC and a TCP address, the QUIC address is dialed first. Only if the connection attempt doesn't succeed within 250ms, a TCP connection is started.

Our measurements on the IPFS network show that for >90% of established libp2p connections, the first connection attempt succeeds,
leading a dramatic decrease in the number of aborted connection attempts.

We also added new metrics to the swarm Grafana dashboard, showing:

  • The number of connection attempts it took to establish a connection
  • The delay introduced by the ranking logic

This feature should be safe to enable for nodes running in data centers and for most nodes in home networks.
However, there are some (mostly home and corporate networks) that block all UDP traffic. If enabled, the current implementation
of the smart dialing logic will lead to a regression, since it preferes QUIC addresses over TCP addresses. Nodes would still be
able to connect, but connection establishment of the TCP connection would be delayed by 250ms.

In a future release (see #1605 for details), we will introduce a feature called blackhole detection. By observing the outcome of
QUIC connection attempts, we can determine if UDP traffic is blocked (namely, if all QUIC connection attempts fail), and stop
dialing QUIC in this case altogether. Once this detection logic is in place, smart dialing will be enabled by default.

More Metrics!

Since the last release, we've added metrics for:

WebTransport

  • #2251: Infer public WebTransport address from quic-v1 addresses if both transports are using the same port for both quic-v1 and WebTransport addresses.
  • #2271: Only add certificate hashes to WebTransport mulitaddress if listening on WebTransport

Housekeeping updates

  • Identify
    • #2303: Don't send default protocol version
    • Prevent polluting PeerStore with local addrs
      • #2325: Don't save signed peer records
      • #2300: Filter received addresses based on the node's remote address
  • WebSocket
    • #2280: Reverted back to the Gorilla library for WebSocket
  • NAT
    • #2248: Move NAT mapping logic out of the host

🐞 Bugfixes

New Contributors

Full Changelog: v0.27.0...v0.28.0

v0.27.6

12 Jun 18:56
2df518f
Compare
Choose a tag to compare

What's Changed

  • Clean up stream scope in case of error

Full Changelog: v0.27.5...v0.27.6

v0.27.5

02 Jun 21:30
6dffa1a
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.27.3...v0.27.5

v0.27.4

30 May 18:48
Compare
Choose a tag to compare

What's Changed

  • identify
    • Fixed an issue where we now avoid spuriously triggering pushes
    • Fixed an issue where signed peer records weren’t rejected if the signature didn’t match
  • swarm
    • Fixed duplicate tracking in dial worker loop

v0.27.3

09 May 07:48
Compare
Choose a tag to compare

This patch release contains a fix for a rare panic that occurs on Windows systems (backport of #2276).

Full Changelog: v0.27.1...v0.27.3

v0.27.2

05 May 19:19
6a96cb0
Compare
Choose a tag to compare

What's Changed

quic: fix race condition when generating random holepunch packet (#2263)
webtransport: initialize the certmanager when creating the transport (#2268)

Full Changelog: v0.27.1...v0.27.2

v0.27.1

13 Apr 08:40
c309692
Compare
Choose a tag to compare

This patch release fixes a couple of bugs. Most importantly, go-libp2p now infers WebTransport listen addresses from the observation (via Identify) of QUIC addresses, if QUIC and WebTransport are run on the same IP and port.

What's Changed

Full Changelog: v0.27.0...v0.27.1

v0.27.0

06 Apr 08:16
0699592
Compare
Choose a tag to compare

Breaking Changes

  • The LocalPrivateKey method was removed from the network.Conn interface. #2144

🔦 Highlights

Additional metrics

Since the last release, we've added metrics for:

  • Relay Service: RequestStatus, RequestCounts, RejectionReasons for Reservation and Connection Requests,
    ConnectionDuration, BytesTransferred, Relay Service Status.
  • Autorelay: relay finder status, reservation request outcomes, current reservations, candidate circuit v2 support, current candidates, relay addresses updated, num relay address, and scheduled work times

🐞 Bugfixes

  • autonat: don't change status on dial request refused 2225
  • relaysvc: fix flaky TestReachabilityChangeEvent 2215
  • basichost: prevent duplicate dials 2196
  • websocket: don't set a WSS multiaddr for accepted unencrypted conns 2199
  • identify: Fix IdentifyWait when Connected events happen out of order 2173
  • circuitv2: cleanup relay service properly 2164

Changelog

Contributors

Contributor Commits Lines ± Files Changed
Sukun 11 +3526/-262 33
Marten Seemann 15 +615/-1396 75
galargh 2 +876/-804 6
Marco Munizaga 14 +1173/-134 44
Henrique Dias 2 +185/-40 3
Prithvi Shahi 2 +55/-14 2
gammazero 2 +31/-0 4
libp2p-mgmt-read-write[bot] 1 +26/-0 1
Piotr Galar 1 +25/-0 1
dependabot[bot] 3 +12/-9 6
Rod Vagg 5 +6/-6 5
Laurent Senta 1 +2/-2 1
Hlib Kanunnikov 1 +2/-1 1
Andrew Gillis 1 +2/-1 1
RichΛrd 1 +1/-1 1
Nikhilesh Susarla 1 +1/-1 1
Masih H. Derkani 1 +1/-1 1
Bryan White 1 +1/-1 1

Full Changelog: v0.26.4...v0.27.0