Backported fix from later versions of jmq. <sarcasm> Turns out ZMQ_LINGER is available in ZMQ revisions 3.0.x and later too... ;-)