zeromq/pyzmq — pull request #216 by minrk (2012-06-08 10:03:13+00:00)
Title: fix green event cleanup, and workaround gevent bug

cleanup gevent events on close/del

Previously, they could stick around after socket close, causing problems for later event watchers.

Adds workaround for gevent bug when detecting libzmq bug (?!), where get() could raise timeout on *success*, even with the timeout far from being reached (raise after 0.1ms for 1s timeout).

Bug confirmed on gevent-0.13.7, OS X 10.7.4