Deadlock when synchronizing two simple python3 scripts using 0mq (ZeroMQ)
I get this strange deadlock when I try to synchronize two python3 scripts using 0mq ( ZeroMQ ). The scripts run fine for several thousand iterations, but sooner or later they both stop and wait for each other. I am running both scripts from different CMD-Windows on Windows 7. I cannot figure out why such a deadlock is even possible . What can go wrong here? Script A: while (1): context = zmq.Context() socket = context.socket(zmq.REP) socket.bind('tcp://127.0.0.1:10001') msg = socket.recv() # Waiting for script B to send done # ...................................................................