Re: [zeromq-dev] ZMQ vs SPI: FD shenanigans
Hi, It is a well known bug to be checking the errno value without first checking that the system call failed. The errno number has no meaning _unless_ the system call failed, it doesn't matter what it's value is if there hasn't been an error. Hope that helps... Ed -- | Ed Griffiths, Acedb/ZMap development, Computational Genomics Group,| | The Sulston Building, Sanger Institute, Wellcome Trust Genome Campus, | | Hinxton, Cambridge CB10 1HH | || | email: edg...@sanger.ac.uk Tel: +44-1223-496844 Fax: +44-1223-494919 | -- The Wellcome Trust Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered office is 215 Euston Road, London, NW1 2BE. Hello, Am 21.01.2015 22:31, schrieb KIU Shueng Chuan: Are you sure that the ioctl call failed? You are printing out errno wit hout having checked the return code of the ioctl call. -Snipp- that actually was the problem!!! My own code had more debug checks to verify that none of the previous calls failed. But that debug code never checked the contents of errno before the end! zmq_bind() may return successfully (zmq_bind() == 0), but it still leaves errno non-equal to zero. And in my real program I didn't use the return code of the ioctl call but the errno value. Thank you for helping me find this! Now the question: is it proper behaviour of zmq_bind() to change errno to a non-success value and then return successfully? Or should ZMQ everywhere that it works around temporary errors reset errno to zero on success? Best regards, Olaf Mandel -- Olaf Mandel phone: +49-89-189166-250 fax: +49-89-189166-111 Menlo Systems GmbH Am Klopferspitz 19a, D-82152 Martinsried Amtsgericht München HRB 138145 Geschäftsführung: Dr Michael Mei, Dr Ronald Holzwarth USt-IdNr. DE217772017, St.-Nr. 14316170324 signature.asc Description: OpenPGP digital signature ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] Using ZeroMQ Security with gssapi
Mike Gatny schreef op de 22e dag van de louwmaand van het jaar 2015: To summarize, do the following as peter: kdestroy kinit ./gssapi-client sudo ./gssapi-server Ook zo werkt het niet bij mij. -- Peter Kleiweg http://pkleiweg.home.xs4all.nl/ ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] PUB/SUB guarantee on message order
Messages carried over TCP or IPC will be delivered in order if they pass through the same network paths. This is guaranteed and it's a TCP guarantee, nothing to do with ZeroMQ. ZeroMQ does not reorder messages, ever. However if you pass messages through two or more paths, and then merge those flows again, you will in effect shuffle the messages. On Thu, Jan 22, 2015 at 11:51 AM, Auer, Jens jens.a...@cgi.com wrote: Hi, I am trying to find some reference to the guarantees zeroMQ gives when receiving data via PUB/SUB. The guide says that basically zeroMQ tries hard to deliver messages, but they may get lost. If a message is received, it is complete. Now, I am interested in guarantees on the order of messages. When I send messages from PUB to SUB, is it guaranteed that if they arrive, that will be in sending order? I have not found any official statement in the protocols or in the guide, and searching the internet has not shown a real consensus. It would be nice if somebody could point to a document or other source. Thanks, Jens ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] ZMQ vs SPI: FD shenanigans
Hello, Am 21.01.2015 22:31, schrieb KIU Shueng Chuan: Are you sure that the ioctl call failed? You are printing out errno without having checked the return code of the ioctl call. -Snipp- that actually was the problem!!! My own code had more debug checks to verify that none of the previous calls failed. But that debug code never checked the contents of errno before the end! zmq_bind() may return successfully (zmq_bind() == 0), but it still leaves errno non-equal to zero. And in my real program I didn't use the return code of the ioctl call but the errno value. Thank you for helping me find this! Now the question: is it proper behaviour of zmq_bind() to change errno to a non-success value and then return successfully? Or should ZMQ everywhere that it works around temporary errors reset errno to zero on success? Best regards, Olaf Mandel -- Olaf Mandel phone: +49-89-189166-250 fax: +49-89-189166-111 Menlo Systems GmbH Am Klopferspitz 19a, D-82152 Martinsried Amtsgericht München HRB 138145 Geschäftsführung: Dr Michael Mei, Dr Ronald Holzwarth USt-IdNr. DE217772017, St.-Nr. 14316170324 signature.asc Description: OpenPGP digital signature ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] undefined reference to `zmq_z85_encode'
CZMQ includes both header files, though zmq_utils.h is empty in later versions of ZeroMQ. Also the error is on linking... Check, if make check works in CZMQ, then it's linking these functions (you can see they're used in zcert and zarmour). So look carefully at the link commands you're using for your application. There is either a missing -lzmq or else you have two different libzmq.a versions installed, and it's using the wrong one. -Pieter On Thu, Jan 22, 2015 at 2:26 AM, Check Peck comptechge...@gmail.com wrote: On Wed, Jan 21, 2015 at 5:17 PM, Peter Kleiweg pklei...@xs4all.nl wrote: zmq_utils.h So you are saying I am missing this include header in my class where I am using czmq? What is the use of zmq_utils.h file here? ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
[zeromq-dev] PUB/SUB guarantee on message order
Hi, I am trying to find some reference to the guarantees zeroMQ gives when receiving data via PUB/SUB. The guide says that basically zeroMQ tries hard to deliver messages, but they may get lost. If a message is received, it is complete. Now, I am interested in guarantees on the order of messages. When I send messages from PUB to SUB, is it guaranteed that if they arrive, that will be in sending order? I have not found any official statement in the protocols or in the guide, and searching the internet has not shown a real consensus. It would be nice if somebody could point to a document or other source. Thanks, Jens ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] undefined reference to `zmq_z85_encode'
So you have a link problem. On Thu, Jan 22, 2015 at 7:12 PM, Check Peck comptechge...@gmail.com wrote: On Thu, Jan 22, 2015 at 1:58 AM, Pieter Hintjens p...@imatix.com wrote: make chec Yes I tried make check and it works fine. Below is the output - Making check in doc make[1]: Entering directory `/home/david/czmq/doc' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/home/david/czmq/doc' make[1]: Entering directory `/home/david/czmq' make src/czmq_selftest make[2]: Entering directory `/home/david/czmq' make[2]: Leaving directory `/home/david/czmq' make check-TESTS make[2]: Entering directory `/home/david/czmq' Running CZMQ selftests... * zarmour: OK * zrex: OK * zsys: OK * zchunk: OK * zconfig: OK * zclock: OK * zdir_patch: OK * zdir: OK * zdigest: OK * zframe: OK * zstr: OK * zlist: OK * zlistx: OK * zhash: OK * zhashx: OK * zmsg: OK * zfile: OK * ziflist: OK * zuuid: OK * zsock: OK * zsock_option: OK * zactor: OK * zpoller: OK * zloop: OK * zproxy: OK * zmonitor: OK * zbeacon: OK * zgossip: OK * zcert: OK * zcertstore: OK * zauth: OK * zauth (deprecated): OK * zbeacon (deprecated): OK * zctx (deprecated): OK * zmonitor (deprecated): OK * zmutex (deprecated): OK * zproxy (deprecated): OK * zsocket (deprecated): OK * zsockopt (deprecated): OK * zthread (deprecated): OK Number of memory allocations=645136 Tests passed OK PASS: src/czmq_selftest = 1 test passed = make[2]: Leaving directory `/home/david/czmq' make[1]: Leaving directory `/home/david/czmq' ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] Using ZeroMQ Security with gssapi
Peter Kleiweg schreef op de 22e dag van de louwmaand van het jaar 2015: Mike Gatny schreef op de 22e dag van de louwmaand van het jaar 2015: To summarize, do the following as peter: kdestroy kinit ./gssapi-client sudo ./gssapi-server Ook zo werkt het niet bij mij. I'm sorry. I mean, this way it doesn't work either. -- Peter Kleiweg http://pkleiweg.home.xs4all.nl/ ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
[zeromq-dev] Logo image for edgenet/hydra?
It would be nice if someone who is graphically-inclined could submit a basic logo image for edgenet/hydra to be used in the Hydra demo android app for FOSDEM 2015. Details here: https://github.com/edgenet/hydra/issues/49 ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Re: [zeromq-dev] undefined reference to `zmq_z85_encode'
On Thu, Jan 22, 2015 at 1:58 AM, Pieter Hintjens p...@imatix.com wrote: make chec Yes I tried make check and it works fine. Below is the output - Making check in doc make[1]: Entering directory `/home/david/czmq/doc' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/home/david/czmq/doc' make[1]: Entering directory `/home/david/czmq' make src/czmq_selftest make[2]: Entering directory `/home/david/czmq' make[2]: Leaving directory `/home/david/czmq' make check-TESTS make[2]: Entering directory `/home/david/czmq' Running CZMQ selftests... * zarmour: OK * zrex: OK * zsys: OK * zchunk: OK * zconfig: OK * zclock: OK * zdir_patch: OK * zdir: OK * zdigest: OK * zframe: OK * zstr: OK * zlist: OK * zlistx: OK * zhash: OK * zhashx: OK * zmsg: OK * zfile: OK * ziflist: OK * zuuid: OK * zsock: OK * zsock_option: OK * zactor: OK * zpoller: OK * zloop: OK * zproxy: OK * zmonitor: OK * zbeacon: OK * zgossip: OK * zcert: OK * zcertstore: OK * zauth: OK * zauth (deprecated): OK * zbeacon (deprecated): OK * zctx (deprecated): OK * zmonitor (deprecated): OK * zmutex (deprecated): OK * zproxy (deprecated): OK * zsocket (deprecated): OK * zsockopt (deprecated): OK * zthread (deprecated): OK Number of memory allocations=645136 Tests passed OK PASS: src/czmq_selftest = 1 test passed = make[2]: Leaving directory `/home/david/czmq' make[1]: Leaving directory `/home/david/czmq' ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev