Skip to content

fix(stream): garbage-collect deregistered streams in Shared::accept#5999

Merged
mergify[bot] merged 4 commits intolibp2p:masterfrom
PoulavBhowmick03:drop/IncomingStream
Apr 21, 2025
Merged

fix(stream): garbage-collect deregistered streams in Shared::accept#5999
mergify[bot] merged 4 commits intolibp2p:masterfrom
PoulavBhowmick03:drop/IncomingStream

Conversation

@PoulavBhowmick03
Copy link
Contributor

Description

Related #5963
Fixes #5963

As per the discussion in the comments of the issue, I have modified Shared::accept to remove deregistered inbound protocols similar to what Shared::supported_inbound_protocols does, in order to potentially fix the problem of dropping IncomingStreams does not deregister inbound protocol

Notes & open questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

@PoulavBhowmick03 PoulavBhowmick03 changed the title modified Shared::accept to remove deregistered inbound protocols fix(libp2p-stream): modified Shared::accept to remove deregistered inbound protocols Apr 21, 2025
@PoulavBhowmick03 PoulavBhowmick03 changed the title fix(libp2p-stream): modified Shared::accept to remove deregistered inbound protocols fix(libp2p-stream): IncomingStreams now deregisters inbound protocol Apr 21, 2025
@PoulavBhowmick03 PoulavBhowmick03 changed the title fix(libp2p-stream): IncomingStreams now deregisters inbound protocol fix(stream): IncomingStreams now deregister inbound protocol Apr 21, 2025
Copy link
Member

@elenaf9 elenaf9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @PoulavBhowmick03!

Could you please also bump the libp2p-stream version to 0.3.0-alpha.1 and add a new CHANGELOG entry?

@PoulavBhowmick03
Copy link
Contributor Author

Thanks @PoulavBhowmick03!

Could you please also bump the libp2p-stream version to 0.3.0-alpha.1 and add a new CHANGELOG entry?

Sure

@PoulavBhowmick03
Copy link
Contributor Author

@elenaf9 can you ptal? thanks!

@elenaf9 elenaf9 changed the title fix(stream): IncomingStreams now deregister inbound protocol fix(stream): garbage-collect deregistered streams in Stream::accept Apr 21, 2025
@elenaf9 elenaf9 changed the title fix(stream): garbage-collect deregistered streams in Stream::accept fix(stream): garbage-collect deregistered streams in Shared::accept Apr 21, 2025
@mergify mergify bot merged commit 144be1f into libp2p:master Apr 21, 2025
70 of 71 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

libp2p-stream dropping IncomingStreams does not deregister inbound protocol

2 participants