[zeromq-dev] zmq_poll does not recognize ZMQ_REQ_RELAXED option
Ilya Kulakov
kulakov.ilya at gmail.com
Mon Aug 17 20:19:41 CEST 2015
> Did you remember to set the option before you make your bind/connect?
Yes.
>
> Did you also enable zmq_req_correlate?
Yes.
>
> Do you have a code sample? Also, other people have had trouble with this
> feature before too, so you might try reading what they wrote last time.
Here is the sample in Python:
import zmq
context = zmq.Context.instance()
req = context.socket(zmq.REQ)
req.req_correlate = True
req.req_relaxed = True
req.send(b"request")
req.poll(100, zmq.POLLOUT)
>> 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150817/2be02a43/attachment.htm>
More information about the zeromq-dev
mailing list