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

iroh-net: Create custom Quinn::Runtime impl to keep track of spawned tasks #2958

Open
flub opened this issue Nov 22, 2024 · 0 comments
Open
Labels
c-iroh refactor a change that neither fixes a bug nor adds a feature

Comments

@flub
Copy link
Contributor

flub commented Nov 22, 2024

One issue we have is that Quinn spawns driver tasks that we have little control over. E.g. at close time we would like to close the socket but then some endpoint driver task will get a read error.

If we created our own impl of Quinn::Runtime then we could keep track of the spawned tasks in a JoinSet or TaskTracker and make sure they are aborted on close, after which we could close the socket safely.

@flub flub added refactor a change that neither fixes a bug nor adds a feature c-iroh labels Nov 22, 2024
@ramfox ramfox moved this to 📋 Backlog in iroh Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-iroh refactor a change that neither fixes a bug nor adds a feature
Projects
Status: No status
Development

No branches or pull requests

1 participant