[zeromq-dev] zero-mq: socket.recv() call is blocking

Gregg Irwin gregg at pointillistic.com
Wed Sep 24 21:23:00 CEST 2014

Hi Karthik,

KS> `string = socket.recv()`

KS> blocks till I recieve a message.I don't want this to happen.I
KS> want the messages to be queued up on the recieve side so that I
KS> can get it out of the queue (or something similar to this)

KS> Is there some model in zero-mq that allows this?

Yes. You can tell a socket not to wait (the ZMQ_DONTWAIT flag) or use
the zmq_poll function.

-- Gregg

More information about the zeromq-dev mailing list