[zeromq-dev] What ZMQ socket state is maintained upon disconnect?

Daniel Krikun krikun.daniel at gmail.com
Tue Jul 23 18:10:09 CEST 2013


Automatic reconnection only considers topology (obviously it is implemented
on the client side).
As far as I remember, subscriptions are preserved on reconnect (because it
is a socket option), and message queues - I think, they are destroyed,
unless socket identity is set.
On Jul 23, 2013 1:31 PM, "Merijn Verstraaten" <merijn at inconsistent.nl>

> Hello!
> Lines like "• SHALL create a queue when a subscriber connects to it. If
> this subscriber disconnects, the PUB socket SHALL destroy its queue and
> SHALL discard any messages it contains." from the PUBSUB RFC lead me to
> believe that while the protocol dictates automatic reconnects upon
> connection loss, the listening side is not required to maintain state?
> i.e., the only socket maintaining state about (like subscriptions, queued
> messages, etc.) is the connecting socket, correct?
> Cheers,
> Merijn
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130723/3e016449/attachment.htm>

More information about the zeromq-dev mailing list