[zeromq-dev] Python Streamer Push/Pull Device "losing" messages
james at jamesthornton.com
Fri Oct 21 08:14:58 CEST 2011
> Using LINGER is the proper way to solve this in conjunction with zmq_close() and zmq_term() as your code now does.
> Perhaps there was a bug with 2.1.4 (I don't recall... it's pretty old). Any chance you can retry with 2.1.10 and see if this behavior persists? I have similar code running under 2.1.10 and the LINGER works as expected.
I uninstalled the Fedora 2.1.4 packaged, compiled the 2.1.11 version
off GitHub, and recompiled the latest pyzmq off GitHub, but still no
Chuck, did you run this Python script
(https://gist.github.com/1302163) with the sleep(5) commented out?
It usually runs fine the first time, but subsequent times it still
comes up short:
$ python device_test.py
0 got message! #734
0 got message! #735
0 got message! #736
0 got message! #737
0 got message! #738
More information about the zeromq-dev