Hi all,
I've just committed a rather extensive patch to the master.
It introduces a special thread ("reaper thread") to handle socket
shutdown asynchronously. The patch should have following consequences:
1. zmq_close() just passes the socket to the reaper thread and exits
immediately.
2. The sockets are destroyed asynchronously and thus there's no need for
user to invoke libzmq to free resources allocated by the socket.
3. zmq_term() should be interruptible and restartable now, meaning that
Ctrl+C during zmq_term() should work as expected.
4. The change may alleviate the problem with internal socketpair overflows.
Martin
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev