[zeromq-dev] Multiple connects with a ZMQ_REQ socket appears not to work

Luca Boccassi luca.boccassi at gmail.com
Sat Feb 24 00:00:20 CET 2018


On Fri, 2018-02-23 at 22:44 +0000, Mark wrote:
> > > be up as far as 0MQ is concerned, but unbeknown to it, the TCP
> > > socket
> > > is dead or will be dead when it tries to use it next.
> > 
> > That's what I mean - there are socket options for keepalive and
> > reconnect timeouts (which also mean connect timeouts) - if you
> > tweak
> > those, the first connection pipe might get discarded after the
> > timeout
> > - needs testing though
> 
> Yeah. I tried tweeking all of these, but it seems that once the
> message is queued on a connection via _send() the message never gets
> moved to another connection regardless of any connect/reconnect
> timeouts. (This is speculation on my part as I haven't look at the
> 0MQ
> code to verify this behaviour - but it appears that way.)
> 
> In any event, I still need to deal with a server failure prior to it
> sending back a REP and that's something that 0MQ can't handle
> internally.
> 
> Is there an easy way to dump the internal state of each connection
> and
> show the messages queued on it?

Events can give you the connection status changes, but you cannot get
info on the message queues (intentionally).

Have a read of the zguide, there should be plenty information of
various failover patterns: http://zguide.zeromq.org/

-- 
Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20180223/c368c35f/attachment.sig>


More information about the zeromq-dev mailing list