[zeromq-dev] Req/Rep Timeout?

Bachmair Florian - flexSolution GmbH florian.bachmair at flexsolution.eu
Wed May 6 12:35:04 CEST 2015


Hi

     void *req = zsocket_new(context, ZMQ_REQ);
     int rc = zsocket_connect(req, "%s", addr);
     assert(rc==0);
     s_sendmore(req, ts);
     s_sendmore(req, f);
     s_sendmore(req, cmd);
     s_send(req, msg);

     char* reply = s_recv(req); //hangs if REPLYER is not available


how can I solve this? My application sends an REQUEST but if the REPLYER 
is not available, it waits for an reply. Is there a oppurtunity to 
detect if zsocket_connect fails?

Thanks
Florian


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150506/f75fb75d/attachment.htm>


More information about the zeromq-dev mailing list