so I have this a bit out-of-ordinary question - as far as I understand it, on systems where SO_REUSEPORT_LB (or SO_REUSEPORT on Linux) is not available, is there any method how to let multiple UDP and/or TCP handles to listen and compete over a single socket?
So, I tried few obvious things:
- Passing same fd to uv_udp_open() doesn't work because uv__fd_exists check
- Calling dup() on the socket and then doing uv_udp_open(..., fd) doesn't work for me on Linux (if I fake the non-existence of the socket option) and I get ENOMEM (what?); maybe it's just a problem doing this on Linux and it will work on freebsd11 / openbsd / netbsd
Anybody has some other idea I missed?