[zeromq-dev] ask again for question "recv in REQ client blocks forever if XREP server dies"
Pieter Hintjens
ph at imatix.com
Tue Aug 23 14:30:43 CEST 2011
2011/8/23 aple <mengxu at staff.sina.com.cn>:
> I met the same problem with Troy, and i'm using 2.1.8 0mq version.
> I tried zmq_poll as said in
> "http://comments.gmane.org/gmane.network.zeromq.devel/6285" with
> hwclient/hwserver example to let client poll before recv any message. But I
> always get poll timeout.
Why are you using XREQ/XREP? These are _not_ asynchronous forms of REQ
/ REP. Please read the zmq_socket documentation with respect to ROUTER
(the proper name for XREP).
-Pieter
More information about the zeromq-dev
mailing list