Thanks for your answer. I guess I need to devise a mechanism to make sure I send every message before calling zctx_destroy.
Regards, 2013/7/29 Pieter Hintjens <[email protected]> > The error 156384765 is ETERM, meaning the context was destroyed from > some other thread. I've fixed CZMQ to show the real error. > > On Mon, Jul 29, 2013 at 7:14 PM, Michaël Melchiore <[email protected]> > wrote: > > Hello all, > > > > The following involves zmq and czmq latest stable releases on CentOS 6.4 > > x86_64 > > > > I am using a zloop to efficiently multiplex three zmq sockets. I have > > noticed the zloop gets interrupted and I cannot explain why. Turning > verbose > > mode on, I get the following trace: > > > > [bin@centos6]>melchiore ./test_proxy_server.out > > 13-07-29 19:02:17 I: zloop: register REP poller (0x7febf0000900, 0) > > 13-07-29 19:02:17 I: zloop: register PULL poller (0x7febf0000f90, 0) > > 13-07-29 19:02:17 I: zloop: register PAIR poller (0xe02310, 0) > > 13-07-29 19:02:17 I: zloop: polling for 3600000 msec > > 13-07-29 19:02:17 I: zloop: call REP socket handler (0x7febf0000900, 0) > > 13-07-29 19:02:17 I: zloop: polling for 3600000 msec > > 13-07-29 19:02:17 I: zloop: call PULL socket handler (0x7febf0000f90, 0) > > 13-07-29 19:02:17 I: zloop: polling for 3600000 msec > > 13-07-29 19:02:17 I: zloop: call PAIR socket handler (0xe02310, 0) > > 13-07-29 19:02:17 I: zloop: polling for 3600000 msec > > 13-07-29 19:02:17 I: zloop: call PULL socket handler (0x7febf0000f90, 0) > > 13-07-29 19:02:17 I: zloop: polling for 3600000 msec > > 13-07-29 19:02:17 I: zloop: call PAIR socket handler (0xe02310, 0) > > 13-07-29 19:02:17 I: zloop: polling for 3600000 msec > > 13-07-29 19:02:17 I: zloop: call PAIR socket handler (0xe02310, 0) > > 13-07-29 19:02:17 I: zloop: polling for 3600000 msec > > 13-07-29 19:02:17 I: zloop: call PULL socket handler (0x7febf0000f90, 0) > > 13-07-29 19:02:17 I: zloop: polling for 3600000 msec > > 13-07-29 19:02:17 I: zloop: interrupted (-1) - Unknown error 156384765 > > > > So, I set up my own signal handler with the zsys module, but it does not > get > > called during execution. I am a bit lost as to where I should investigate > > next... > > > > Pointers welcome ! > > > > Regards, > > > > Michaël > > > > _______________________________________________ > > zeromq-dev mailing list > > [email protected] > > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev >
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
