There are few techniques can be used to balanceTCP connections across event 
loops: https://github.com/libuv/libuv/issues/932#issuecomment-229884507.

One can just use SO_REUSEPORT on modern kernels. Or accept hanlde in one 
loop, then send it with uv_write2 to another loop over IPC pipe, for 
example.

By the way, the last one works perfectly.

How about UDP? There is no idea of connection, but frames only, so what is 
the recommended way to "balance" some part of UDP "stream" across threads?

uv_write2 does not support upd handles:

end_handle must be a TCP socket or pipe
>

My question: is there a way to balance/"emulate balancing"/etc UDP handles.
Is there a way to move UDP handles to another loop?

Maybe is there more elegant way to do that?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to