libev: notify only one process when multiple processes are listening socket
acleone at gmail.com
Tue Jul 16 04:57:25 CEST 2013
Try setting SO_REUSEADDR or SO_REUSEPORT.
On 3.9+ kernels SO_REUSEPORT will load balance nicely:
On Jul 15, 2013 5:19 PM, "trafdev" <trafdev at mail.ru> wrote:
> There are N processes listening same socket and subscribed to libev
> N-1 of them getting "resource temporaly unavailable (eagain) while
> accepting incoming connection, one wins and handles connection.
> Is it possible to get notification on the socket descriptor only in one
> process and not waste resources of others?
> libev mailing list
> libev at lists.schmorp.de
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the libev