v0.38.0
Highlights
-
You can now use the same port for TCP and WebSocket. Refer to the
TestSharedTCPAddr
for an example on how to enable this. Currently this is
opt-in. In a future release, we may enable this as default behavior when you
leave the port unspecified or when you explicitly set the same port. -
The eventbus will now log error messages when it detects slow consumers. It's
important for slow consumers to not stall the eventbus, as this can cause the
core libp2p node to stall. Previously this was visible via metrics. This should
help identify hard-to-debug issues without requiring metrics to be configured.
What's changed
- peerstore: remove sync.Pool for expiringAddrs (#3093) sukun
- webtransport: close quic conn on dial error (#3104) sukun
- peerstore: fix addressbook benchmark timing (#3092) sukun
- swarm: record conn metrics only once (#3091) sukun
- fix(sampledconn): Correctly handle slow bytes and closed conns (#3080) Marco Munizaga
- fix(peerstore): pass options to addrbook constructor (#3090) sukun
- fix(swarm): remove stray print stmt (#3086) sukun
- feat(swarm): delay /webrtc-direct dials by 1 second (#3078) sukun
- ci: free disk space for interop tests (#3084) Piotr Galar
- chore: Update dependencies and fix deprecated function in relay example (#3023) Reymon
- chore: fix broken link to record envelope protobuf file (#3070) hishope
- chore(core): fix function name in interface comment (#3056) wangjingcun
- basichost: avoid modifying slice returned by AddrsFactory (#3068) Ivan Shvedunov
- feat(addrbook): allow passing options to memoryAddrBook (#3062) Daniel Norman
- chore(dashboard/alertmanager): update api version from v1 to v2 (#3054) Carlos Peliciari
- fix(tcpreuse): handle connection that failed to be sampled (#3036) Adin Schmahmann
- fix(tcpreuse): remove windows specific code (#3039) Marco Munizaga
- refactor(core/routing): split ContentRouting interface (#3048) Hector Sanjuan
- fix(holepunch/tracer): replace inline peer struct with peerInfo type (#3049) Carlos Peliciari
- fix(eventbus): Idempotent wildcardSub close (#3045) Marco Munizaga
- fix(identify): push should not dial a new connection (#3035) Marco Munizaga
- eventbus: dont panic on closing Subscription twice (#3034) sukun
- fix(swarm): incorrect error message format order (#3037) 未月
- feat: eventbus: log error on slow consumers (#3031) Marco Munizaga
- chore: make funding.json uppercase to follow meta convention (#3028) (marco/2983) Prithvi Shahi
- chore: add drips entry to funding.json for Filecoin rPGF round 2 (fix/deps) Prithvi Shahi
- tcp: parameterize metrics collector (#3026) Marco Munizaga
- feat(tcpreuse): add options for sharing TCP listeners amongst TCP, WS and WSS transports (#2984) Adin Schmahmann
- pnet: wrap underlying error when reading nonce fails (#2975) sukun
New Contributors
- @cokemine made their first contribution in #3037
- @wangjingcun made their first contribution in #3056
- @hishope made their first contribution in #3070
- @reymom made their first contribution in #3023
Full Changelog: v0.37.0...v0.38.0