Skip to content

Drop streams when closing the connection#217

Open
stormshield-fabs wants to merge 1 commit into
libp2p:masterfrom
stormshield-fabs:drop-streams-when-closing
Open

Drop streams when closing the connection#217
stormshield-fabs wants to merge 1 commit into
libp2p:masterfrom
stormshield-fabs:drop-streams-when-closing

Conversation

@stormshield-fabs

Copy link
Copy Markdown

Fixes #216

This MR copies the Go implementation by explicitly closing the streams when the Connection transitions to the Closing state.

We implemented and tested this successfully in our application.

Another possible fix would be to revert 2bae656 but there might be specific reasons why this was introduced in the first place so we preferred mimicking the Active::cleanup implementation.

@stormshield-fabs stormshield-fabs force-pushed the drop-streams-when-closing branch from 4bcb29d to 4add714 Compare March 2, 2026 09:03
@stormshield-fabs

Copy link
Copy Markdown
Author

We have successfully tested this in our deployments but would be interested in feedback from the maintainers.

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.

Stream::poll_read hangs when the connection is closed

1 participant