Closed jacobkiers closed 10 years ago
The issue was that ZMQ::SOCKOPT_LINGER was not disabled (it is enabled by default). That setting tells ZeroMQ that it should wait with closing the socket until all messages are sent and/or received.
The attached pull request makes sure that this option is disabled by default. When you want a socket to linger, you can do so by explicitly adding that option when creating the Factory or the Socket.
I started a worker for which the Worker Handler was not available. Therefore, after a couple of seconds I expected the worker to kill itself. Instead it kept running, but did nothing.