zeromq/czmq — pull request #174 by mkoppanen (2013-05-15 15:06:52+00:00)
Title: zloop_poller_end

Disclaimer: I have not tested this extensively but logically this should work.

The issue: At the moment there is no clean way to terminate socket from other handler than the one for that specific socket. The problem is that if a handler terminates socket and calls zloop_poller_end the for loop here will still trigger if there are events pending and a potentially uninitialised socket is accessed.

Solution: self->dirty is checked in the loop after handler and rebuild is done in case there has been pollers ended

Comments?