Skip to content

fix: cover traffic leaking channels - #3

Merged
chaitanyaprem merged 1 commit into
masterfrom
fix/cover-traffic-leaking-channels
May 6, 2026
Merged

fix: cover traffic leaking channels#3
chaitanyaprem merged 1 commit into
masterfrom
fix/cover-traffic-leaking-channels

Conversation

@chaitanyaprem

Copy link
Copy Markdown
Collaborator

Port of vacp2p/nim-libp2p#2407.

The slot exhaustion test now stops mix nodes before destNode (so destNode shuts down last). The previous LIFO defer order left in-flight exit→destNode channels in a partially-open state when the mix switches cleaned up.

NoReplyProtocol's LPStreamError handler swallows with discard instead of raiseAssert — the stream can close concurrently while the read is in progress.

2 files changed, 6 insertions, 6 deletions.

Port of vacp2p/nim-libp2p#2407.

The `slot exhaustion` test now stops mix nodes before destNode.
Previously (LIFO defer order), destNode stopped first, leaving
in-flight exit→destNode channels in a partially-open state when
the mix nodes' switches finally cleaned up.

Also: NoReplyProtocol's LPStreamError handler swallows the error
with `discard` instead of `raiseAssert`, since the stream can be
closed concurrently while the read is in progress.
@chaitanyaprem chaitanyaprem changed the title fix(daily): cover traffic leaking channels fix: cover traffic leaking channels May 6, 2026
@chaitanyaprem

Copy link
Copy Markdown
Collaborator Author

Merging as this has already been reviewed in libp2p and merged.

@chaitanyaprem
chaitanyaprem merged commit eb9f2e3 into master May 6, 2026
11 checks passed
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