Re: Extending session lifetime with client requests

2016-10-16 Thread Michael Han
The liveness of a session is maintained by heart beats between ZK client and server, and this heartbeat comes as two forms: the periodic ping, or an explicit request (e..g getData). So yes, a client sends a getData request will extend the timeout of the session. >> In other words, will a client

Extending session lifetime with client requests

2016-10-14 Thread Peng Li
Hi there, Suppose a zookeeper session timeout is configured to 10 seconds. If at time t, a client sends a getData() request to the ensemble and succeeds, can I assume the client's zookeeper session will be live for the next (10 - delta) seconds according to the client's local clock? In other