This code seems to hang for me after the send; any ideas why? I would expect this to throw an zmq::Error::EAGAIN and completely exit if the socket URL is not already bound.
Traceback (most recent call last):
File "/home/user/zmq-test/test.py", line 6, in <module>
socket.recv_string(flags=zmq.DONTWAIT)
File "/home/user/venv/lib/python3.9/site-packages/zmq/sugar/socket.py", line 858, in recv_string
msg = self.recv(flags=flags)
File "zmq/backend/cython/socket.pyx", line 809, in zmq.backend.cython.socket.Socket.recv
File "zmq/backend/cython/socket.pyx", line 845, in zmq.backend.cython.socket.Socket.recv
File "zmq/backend/cython/socket.pyx", line 199, in zmq.backend.cython.socket._recv_copy
File "zmq/backend/cython/socket.pyx", line 194, in zmq.backend.cython.socket._recv_copy
File "zmq/backend/cython/checkrc.pxd", line 22, in zmq.backend.cython.checkrc._check_rc
zmq.error.Again: Resource temporarily unavailable
This code seems to hang for me after the send; any ideas why? I would expect this to throw an zmq::Error::EAGAIN and completely exit if the socket URL is not already bound.
rustc 1.68 Ubuntu 22
This is the corresponding python code:
Which produces the error: