Skip to content

deps: upgrade go-libp2p to v0.47.0 - #148

Open
sukunrt wants to merge 2 commits into
ethpandaops:masterfrom
sukunrt:libp2p-bump
Open

deps: upgrade go-libp2p to v0.47.0#148
sukunrt wants to merge 2 commits into
ethpandaops:masterfrom
sukunrt:libp2p-bump

Conversation

@sukunrt

@sukunrt sukunrt commented Aug 17, 2026

Copy link
Copy Markdown

No description provided.

libp2p swarm notifiees run synchronously before the connection starts
accepting inbound streams. The emission broker's Emit waits for all
callbacks, so a slow AfterPeerConnect handler (e.g. the crawler's whole
crawl) blocked inbound stream handling on the new connection — remote
peers' identify and req/resp streams stalled until the handler finished.

Emit events on background goroutines, bounded by a 100-slot semaphore so
handler concurrency stays capped and misbehaving handlers surface as
backpressure instead of unbounded goroutine growth.

Assisted-By: Claude Fable 5
Previously held back (ethpandaops#143) because the version bump reproducibly broke
Test_RunKurtosisTests: since v0.42.0 identify's default timeout is 5s,
and the crawler's blocking Connected handler stalled inbound streams
long enough for identify to time out. Fixed by the previous change,
which moved event handlers off the notifiee path.

go-libp2p-pubsub stays at v0.15.0: v0.16.0+ adds
RawTracer.OnClosedOutboundStream, which prysm v6.1.4 (latest release)
does not implement, breaking the build.

Assisted-By: Claude Fable 5
@sukunrt
sukunrt requested a review from mattevans as a code owner August 17, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant