[zeromq-dev] accept() and EMFILE/ENFILE
Martin Sustrik
sustrik at fastmq.com
Fri May 22 09:17:13 CEST 2009
Dhammika Pathirana wrote:
> Hi Martin,
>
> We can purge idle clients to accept pending connections.
> Limiting listen backlog is another option, TCP sends ECONNRESET if
> there's no space in backlog queue.
Right. That would solve the problem.
Still, why do you believe the timout approach is better then simply
closing and reopening the listening socket on ENFILE/EMFILE to terminate
the connections in the backlog?
Martin
More information about the zeromq-dev
mailing list