PUB/SUB with bind on subscriber side not working on version 3.2

Description

test_zmq.py freezes on 0mq version 3.2.3 whereas it works fine on version 2.2.0
Increasing the sleep duration doesn't seem to help.
It works if the PUB socket issues the bind.

In test_zmq2.py the SUB finally catches the message after dropping the first n. (n varies from 90 to 12000 in my case).

Environment

Debian

Activity

Show:
Fayaz Yusuf Khan
July 14, 2013, 5:54 AM

Also, this is what happens when I quit the process:

^CTraceback (most recent call last):
File "test_zmq.py", line 18, in <module>
main()
File "test_zmq.py", line 14, in main
print ssocket.recv()
File "socket.pyx", line 587, in zmq.core.socket.Socket.recv (zmq/core/socket.c:5359)
File "socket.pyx", line 621, in zmq.core.socket.Socket.recv (zmq/core/socket.c:5178)
File "socket.pyx", line 130, in zmq.core.socket._recv_copy (zmq/core/socket.c:1690)
File "checkrc.pxd", line 11, in zmq.core.checkrc._check_rc (zmq/core/socket.c:5669)
KeyboardInterrupt

estabroo
July 14, 2013, 3:21 PM

try.py shows an interesting thing. It seems like a recv call is needed on the subscription side before a message on the publish side ever makes it when doing the connect from the publish side. In the case of my computer it required 3 non-blocking recv calls with that slight delay before a pub/sub action would complete

PieterP
November 6, 2013, 9:53 PM

Duplicate of

Duplicate

Assignee

Unassigned

Reporter

Fayaz Yusuf Khan

Labels

Components

Affects versions

Priority

Major