2 ms·
Almost nobody actually uses epoll at that kind of scale though. Almost everybody is just fine with `accept` from just one thread. and `SO_REUSEPORT` is safe if
by o11c 3y ago
Almost nobody actually uses epoll at that kind of scale though. Almost everybody is just fine with `accept` from just one thread.
and `SO_REUSEPORT` is safe if you're using a fixed thread pool; it only fails if you use a variable-size thread pool or if you're using multiple processes and one dies (though frankly, if a process dies, you're going to lose something anyway).
The "but what if I `fork` and `close`" problem is purely theoretical I'm pretty sure.