[zeromq-dev] ZMQ_LINGER socket option

gonzalo diethelm gdiethelm at dcv.cl
Mon Oct 18 16:06:50 CEST 2010

> To prevent 0MQ/2.1 processes hanging up indefinitely when messages
> cannot be delivered to the peer, ZMQ_LINGER option was introduced. It
> has more or less the same semantics as standard POSIX SO_LINGER
> however, the argument is int rather than the structure to make it easy
> for language bindings to manipulate it.
> Value of -1 means "try to send the data indefinitely".
> Value of 0 means "drop the unsent messages and exit"
> Positive value means "try to send for N milliseconds, then drop the
> unsent messages and exit"
> The option is available in master.

I just took a look at this change and have a question. Should it be
protected with VERSION macros in any way? Or it just goes into master
and that's it?

Gonzalo Diethelm

More information about the zeromq-dev mailing list