[zeromq-dev] zmq_msg_send blocks reading from zmq::mailbox_t

Pieter Hintjens ph at imatix.com
Thu Jul 2 20:53:39 CEST 2015


Could be new code in 4.x misbehaving. Try setting a send timeout,
and/or not using the mandatory option, maybe.

On Thu, Jul 2, 2015 at 8:19 PM, Marcin Romaszewicz <marcin at brkt.com> wrote:
>
>
> On Thu, Jul 2, 2015 at 11:16 AM, Pieter Hintjens <ph at imatix.com> wrote:
>>
>> Can you make a minimal test case?
>>
>
> I'm trying, yes, but so far, no luck. Our zmq-based message routers are
> complex and have many sockets in many states at any given time, and this
> only happens after some amount of communication has already happened. I'll
> post the minimal test case here if I can come up with one.
>
>>
>> On Thu, Jul 2, 2015 at 2:12 AM, Marcin Romaszewicz <marcin at brkt.com>
>> wrote:
>> > Hi Guys,
>> >
>> > We had our prod systems running on 3.2.4, and to work around some file
>> > descriptor leaks, I'm testing 4.1.2 before back-porting jbreams'
>> > heartbeats
>> > patch, and testing unmodified 4.1.2 is failing for me in production.
>> >
>> > I've got ZMQ_ROUTER sockets wedged in zmq_msg_send, spinning in a while
>> > (True) loop calling recv() on mailbox in zmq::socket_base_t::send().
>> >
>> > Before I start chasing the cause of this, is there a known mistake on my
>> > part which could cause this?
>> >
>> > The socket is a ZMQ_ROUTER, with all settings at default except for
>> > ZMQ_LINGER=0 and ZMQ_ROUTER_MANDATORY=1
>> >
>> > I'm pretty sure I'm sending stuff to a dead peer, but not 100% certain
>> > yet.
>> >
>> > Any tips on what I should be looking for to diagnose this? The same
>> > code,
>> > unmodified, doesn't have this issue against zmq 3.2.4.
>> >
>> > Thanks,
>> > -- Marcin
>> >
>> > _______________________________________________
>> > zeromq-dev mailing list
>> > zeromq-dev at lists.zeromq.org
>> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>> >
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
>
> _______________________________________________
> 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