saltstack/salt — pull request #2979 by s0undt3ch (2012-12-20 22:44:12+00:00)
Title: Set linger on ZMQ sockets before closing

Set linger on ZMQ sockets before closing, stops issues with `context.term()` hanging indefinitely. Refs #2958.

* Any unsent messages a socket which does not have `linger` set to a positive value, will make `context.term()` hang indefinitely. See https://github.com/zeromq/pyzmq/issues/102 for more info.