traviscline/gevent-zeromq — Issue #25: strange deadlock issue with queues
Author: hhuuggoo
Created: 2012-01-25 15:28:06+00:00
State: open

Here are 2 files, one is a server that starts up N request reply echo green threads and write the port numbers to a file.

the second is a simple test case, which creates a test object, with an XREQ socket which reads data off of a gevent queue, forwards it through the zeromq socket, reads the resulting message, and puts the msg on a number of outgoing gevent queues.

this simple test case deadlocks quite quickly, while waiting to recv a message on the zeromq socket.

https://github.com/hhuuggoo/gevent-zeromq/blob/master/examples/simple_test.py
https://github.com/hhuuggoo/gevent-zeromq/blob/master/examples/server.py