Re: closing session on socket close vs waiting for timeout

2010-09-06 Thread Patrick Hunt
That's a good point, however with suitable documentation, warnings and such it seems like a reasonable feature to provide for those users who require it. Used in moderation it seems fine to me. Perhaps we also make it configurable at the server level for those administrators/ops who don't want to d

Re: election recipe

2010-09-06 Thread Patrick Hunt
Hi Andrei, the answer may not be as simple as that. In the case of "passive leader" you might want to just wait till you're reconnected before taking any action. Connection loss indicates that you aren't currently connected to a server, it doesn't mean that you've lost leadership (if you get expire

Re: getting created child on NodeChildrenChanged event

2010-09-06 Thread Patrick Hunt
It is good to keep things simple, but we have seen some requests related to the client api for children use cases that seem reasonable. In particular the issue of handling large numbers of children efficiently is currently a problem (queue say). We've seen proposals on this before, just no one's f

Re: closing session on socket close vs waiting for timeout

2010-09-06 Thread Benjamin Reed
if this mechanism were used very often, we would get a huge number of session expirations when a server fails. you are trading fast error detection for the ability to tolerate temporary network and server outages. to be honest this seems like something that in theory sounds like it will work i