[zeromq-dev] Disconnecting from permanently dead endpoints

Pierre Ynard linkfanel at yahoo.fr
Wed Jan 25 16:25:59 CET 2012


Hello,

I want to set up a messaging system where a zeromq socket connects to
several endpoints (with TCP). Some of these endpoints may go permanently
down, and the corresponding transport addresses could even be reused
by a totally unrelated service. So I need to a way to "disconnect" the
zeromq socket from this endpoint, as keeping around zombie endpoints to
periodically try to reconnect to them is unnecessary, undesirable and
does not scale. The only way I see to do this is to close the socket,
create a new one, and reconnect it to all the remaining endpoints, but
that's quite suboptimal. Did I overlook something?

Regards,

-- 
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."



More information about the zeromq-dev mailing list