41 ms·
dup the listening socket, and use epoll on the dups in threads/processes. (At least that's what nginx does.) Don't share the epoll fd if you're not ready to ma
by pas 10y ago
dup the listening socket, and use epoll on the dups in threads/processes. (At least that's what nginx does.)
Don't share the epoll fd if you're not ready to manage the things covered by it. (Because that means you just shared everything :|)