Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Add the ability to pass a uv_handle_t to a new event loop #1301

Open
kellabyte opened this issue May 29, 2014 · 3 comments
Open

Add the ability to pass a uv_handle_t to a new event loop #1301

kellabyte opened this issue May 29, 2014 · 3 comments

Comments

@kellabyte
Copy link

It would be really great to avoid having to implement the complexity of https://github.com/joyent/libuv/blob/master/test/benchmark-multi-accept.c and avoid sending over IPC to load balance on other event loops. I find this code hard to follow and it's the part I struggle with the most out of all my libuv calling code.

Potentially latency can be improved if this isn't done over IPC?

@piscisaureus
Copy link

I agree with the general observation that this could be done better.

The way to go IMO would be to add an easier API to share handles within a process. Then the user could create a separate thread w/ an event loop that dispatches incoming connections to the different worker threads/loops.

@kellabyte
Copy link
Author

@piscisaureus That sounds great! :)

@indutny
Copy link
Contributor

indutny commented May 31, 2014

Yeah, this sounds reasonable indeed.

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

No branches or pull requests

3 participants