[zeromq-dev] Even more fun with accept

Pieter Hintjens ph at imatix.com
Thu Apr 30 11:42:45 CEST 2009


On Thu, Apr 30, 2009 at 11:15 AM, Martin Sustrik <sustrik at fastmq.com> wrote:

>> Second, Unix has an interesting strategy for dealing with closed
>> sockets, namely to keep them around for a minute or so.
>
> No way to get around this, I suppose? Some kind of kill -9 for sockets?

To be accurate, it depends on how the socket is closed and whether or
not there is someone at the other end.  If the other party does a
proper close, the socket disappears as normal.  The 60 second timeout
is when the other party does not close the socket.

So it might be possible (but I'm probably saying stupid things now) to
empty the accept queue by accepting and closing sockets, depending on
the behaviour of the client.

-Pieter



More information about the zeromq-dev mailing list