Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] libp2p objects thread safety #2023

Closed
turuslan opened this issue Apr 1, 2024 · 0 comments
Closed

[Enhancement] libp2p objects thread safety #2023

turuslan opened this issue Apr 1, 2024 · 0 comments

Comments

@turuslan
Copy link
Contributor

turuslan commented Apr 1, 2024

Currently libp2p assumes single thread of execution and doesn't use mutexes.
Accessing libp2p objects from multiple threads will cause races.
Access libp2p objects from libp2p thread, or add mutexes or thread switches to libp2p.

  • GrandpaImpl::fallback_timer_handle_
@kamilsa kamilsa added this to the Polkadot treasury milestone 2 milestone Apr 3, 2024
@kamilsa kamilsa changed the title libp2p objects thread safety [Enhancement] libp2p objects thread safety Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants