Guest User

pyzmq - SNDTIMEO behavior

a guest
Jul 25th, 2013
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. import zmq
  2.  
  3. context = zmq.Context()
  4.  
  5. sa = context.socket(zmq.ROUTER)
  6. sa.setsockopt(zmq.IDENTITY, b"A")
  7. sa.setsockopt(zmq.SNDTIMEO, 0)
  8. sa.bind("tcp://127.0.0.1:43292")
  9.  
  10. sa.send_multipart([b"NON-EXISTENT", b"Message"], flags=zmq.NOBLOCK)
  11. # Shouldn't this raise an zmq.EAGAIN exception?
Advertisement
Add Comment
Please, Sign In to add comment