[zeromq-dev] I cannot explain why zloop gets interrupted
Pieter Hintjens
ph at imatix.com
Mon Jul 29 19:32:36 CEST 2013
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 <rohel01 at gmail.com> 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 at 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
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
More information about the zeromq-dev
mailing list