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

dharani kumar dharanikumarsrvn at gmail.com
Tue Aug 2 13:37:35 CEST 2016

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?

Dharani kumar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160802/ca131371/attachment.htm>

More information about the zeromq-dev mailing list