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

Luv: deadlock sharing resources between domains? #386

Closed
talex5 opened this issue Dec 9, 2022 · 1 comment
Closed

Luv: deadlock sharing resources between domains? #386

talex5 opened this issue Dec 9, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@talex5
Copy link
Collaborator

talex5 commented Dec 9, 2022

There's a hang reported in mirage/ocaml-cohttp#953 when using the Luv backend with multiple domains. I only looked at it briefly, but I wonder if using multiple Luv event loops is a bad idea. Possibly we should run a single Luv event loop in a sys-thread and dispatch events to domains from that?

@talex5 talex5 added the bug Something isn't working label Dec 9, 2022
@talex5
Copy link
Collaborator Author

talex5 commented Feb 1, 2023

The problem is that libuv associates resources with event loops when they are created, not when they are used. See mirage/ocaml-cohttp#953 (comment) for an example of it going wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant