Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Opening a substream may block the endpoint for significant time #2414

Closed
da-kami opened this issue Jul 14, 2022 · 0 comments · Fixed by #2415
Closed

Opening a substream may block the endpoint for significant time #2414

da-kami opened this issue Jul 14, 2022 · 0 comments · Fixed by #2415

Comments

@da-kami
Copy link
Contributor

da-kami commented Jul 14, 2022

This is an overall problem, but becomes severe on the maker when the maker opens substreams with takers that are not availble (for whatever reason). The endpoint handler for OpenSubstream then only times out after 20s, blocking the complete endpoint while waiting.

Since the maker loops over all "connected" takers when opening substreams for ping and offers, and it can run into this problem with some takers, the blockage then might be so long that other takers lose connections because ping might not be handled.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant