down votefavorite 
<http://stackoverflow.com/questions/41247790/so-reuseport-on-macos-with-libuv#>

the SO_REUSEPORT option not works on macOS with libuv.

uv_loop_init

uv_tcp_init_ex

uv_fileno // get fd

int option_value = 1; setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, 
&option_value, sizeof (int)

uv_tcp_bind

uv_thread_create 4

I see 4 same address and port binding at 0.0.0.0:8080, but only thread1's 
connection_cb works, so can I use this option with my program? thx.

-- 
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