[zeromq-dev] Even more fun with accept

Holger Hoffstätte holger at wizards.de
Thu Apr 30 14:42:51 CEST 2009

Martin Sustrik 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?

As Pieter said it depends on whether there is still in-flight data or not.
Also it's different for client and server. So have fun finding all the
relevant combinations for SO_LINGER and (on Linux) the usefulness of
net.ipv4.tcp_tw_recycle or net.ipv4.tcp_tw_reuse (for influencing the
TIME_WAIT state). Or whether they work correctly on any given kernel.

good luck :)

More information about the zeromq-dev mailing list