[zeromq-dev] Disconnecting from permanently dead endpoints

john skaller skaller at users.sourceforge.net
Thu Jan 26 02:32:45 CET 2012


On 26/01/2012, at 4:39 AM, Pieter Hintjens wrote:

> On Wed, Jan 25, 2012 at 11:34 AM, Pierre Ynard <linkfanel at yahoo.fr> wrote:
> 
>> No, but the PULL client will have a problem with the PUSH servers, many
>> of which will come and then go forever; I don't want to keep around
>> connections to servers that are defintely gone and won't come back.
> 
> In theory this should be managed happily by 0MQ. In practice on some
> systems (Android, at least), it will eventually cause problems. This
> is a bug, and something we're looking into.


Isn't it also a design fault? I mean, if you can connect/bind to multiple endpoints dynamically
you obviously should be able to un-connect and un-bind.

Given that, and a function to test if an endpoint is alive (no idea how .. )
removal of dead endpoints becomes the client's responsibility.

After all only the client can judge when an endpoint is to be deemed
dead because only the client knows the overall architecture.

--
john skaller
skaller at users.sourceforge.net







More information about the zeromq-dev mailing list