[zeromq-dev] How to disconnect a peer from ZMQ ROUTER socket?

Kevin Sapper kevinsapper88 at gmail.com
Tue Aug 2 13:52:23 CEST 2016

Hi Dharani,

have a look how zyre handles peers:


2016-08-02 11:37 GMT+00:00 dharani kumar <dharanikumarsrvn at gmail.com>:

> Hi,
> I have a vpn network where the zmq router is installed on node with static
> ip and all peers are installed on nodes with dynamic ip which means the ip
> will change every time the vpn connection is made. If a peer node
> unfortunately disconnects from the vpn network, the router wont be aware of
> this disconnected peer. If the same peer reconnect to vpn but unfortunately
> gets a different ip, it won't able to connect to router with same identity
> but different ip.
> I can write a ping-pong code to detect dead peer but how to delete the
> dead peer from router socket registry so that it allows new connection for
> the same identity but from a different ip?
> Regards,
> Dharani kumar
> _______________________________________________
> 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/20160802/6e272acb/attachment.htm>

More information about the zeromq-dev mailing list