Hi, yes that was changed recently: https://github.com/zeromq/libzmq/pull/2714/commits/a71f7b04055cb30ef523472f75c981cf02d016a5
czmq must be adapted to that. Best wishes Simon Von: zeromq-dev [mailto:[email protected]] Im Auftrag von Doron Somech Gesendet: Samstag, 16. September 2017 09:03 An: ZeroMQ development list Betreff: Re: [zeromq-dev] Possible zpoller issue I'm guessing you are building libzmq from master including draft? I think the return value from zmq_poller_wait changed to EAGAIN on time out. CZMQ is still checking for ETIMEDOUT. We should fix CZMQ to check for either. https://github.com/zeromq/czmq/blob/master/src/zpoller.c#L233<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fzeromq%2Fczmq%2Fblob%2Fmaster%2Fsrc%2Fzpoller.c%23L233&data=02%7C01%7Csimon.giesecke%40btc-ag.com%7C6bdc7bfd0b0044c09d9908d4fcd0f452%7Cc064efb078954eebb406a40bc377bc7d%7C0%7C0%7C636411421769530151&sdata=qQHW4Wg8BikiR%2F79wL9YpIsND1sZCnbbkPO35pL322Q%3D&reserved=0> On Sep 16, 2017 06:53, "Justin Azoff" <[email protected]<mailto:[email protected]>> wrote: Am I doing something wrong with zpoller here, or is this a bug? #include "czmq_library.h" int main(int argc, char **argv) { zsock_t * sock = zsock_new (ZMQ_DEALER); zsock_connect(sock, "tcp://172.0.0.1:9999<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2F172.0.0.1%3A9999&data=02%7C01%7Csimon.giesecke%40btc-ag.com%7C6bdc7bfd0b0044c09d9908d4fcd0f452%7Cc064efb078954eebb406a40bc377bc7d%7C0%7C0%7C636411421769530151&sdata=L3kUTZIQEDSbisLUUWXXL6oDs%2FHgAIVBLtMjVYpt5DE%3D&reserved=0>"); zpoller_t *poller = zpoller_new (NULL); if(zpoller_add (poller, sock)) { zsys_debug("add failed?!?"); } zsys_debug("Polling..."); void *ret = zpoller_wait (poller, 3000); zsys_debug("Done."); zsys_debug("zpoller_wait() is %s", ret ? "not null" : "null"); zsys_debug("zpoller_expired() is %s", zpoller_expired(poller) ? "true" : "false"); zsys_debug("zpoller_terminated() is %s", zpoller_terminated(poller) ? "true" : "false"); zsock_destroy(&sock); } $ make && ./poll make: Nothing to be done for `all'. D: 17-09-15 22:49:23 Polling... D: 17-09-15 22:49:26 Done. D: 17-09-15 22:49:26 zpoller_wait() is null D: 17-09-15 22:49:26 zpoller_expired() is false D: 17-09-15 22:49:26 zpoller_terminated() is false I was expecting expired to return True. -- - Justin _______________________________________________ zeromq-dev mailing list [email protected]<mailto:[email protected]> https://lists.zeromq.org/mailman/listinfo/zeromq-dev<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.zeromq.org%2Fmailman%2Flistinfo%2Fzeromq-dev&data=02%7C01%7Csimon.giesecke%40btc-ag.com%7C6bdc7bfd0b0044c09d9908d4fcd0f452%7Cc064efb078954eebb406a40bc377bc7d%7C0%7C0%7C636411421769530151&sdata=vhLF1bwwDo29rWj6zoZRvyid2Ijj%2FWUe9DDc%2F%2B8dzz0%3D&reserved=0>
_______________________________________________ zeromq-dev mailing list [email protected] https://lists.zeromq.org/mailman/listinfo/zeromq-dev
