[zeromq-dev] accept() and EMFILE/ENFILE

Dhammika Pathirana dhammika at gmail.com
Sat May 23 18:55:54 CEST 2009


On Fri, May 22, 2009 at 1:50 AM, Martin Sustrik <sustrik at fastmq.com> wrote:
>
>> IMHO, it sounds like a bad design.
>> Aren't we making assumptions about access to well known ports, root
>> privileges etc. This rules out user space apps.
>
> I've missed the point here, can you explain?


We discussed this before,
http://lists.zeromq.org/pipermail/zeromq-dev/2009-May/000749.html
http://lists.zeromq.org/pipermail/zeromq-dev/2009-May/000745.html

Apart from security issues, how do we eliminate thread contention on
released fd?


>
>> Also closing the listening socket sends ECONNREFUESED to new
>> connection requests, this is a hard tcp error.
>> How does the client know if the server is temporarily busy or not
>> running at all? Client can query zmq_server, but then aren't we going
>> to endup with one of those byzantine problems?
>
> My feeling is that both out-of-sockets and component-not-running should be
> handled in the same way, specifically by attempt to reconnect after a while.
>


Isn't it better to draw a distinction and let the application decide?



More information about the zeromq-dev mailing list