Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7527E200BAE for ; Fri, 14 Oct 2016 08:00:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 73A15160AF6; Fri, 14 Oct 2016 06:00:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BB007160AE4 for ; Fri, 14 Oct 2016 08:00:02 +0200 (CEST) Received: (qmail 50408 invoked by uid 500); 14 Oct 2016 06:00:01 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 50389 invoked by uid 99); 14 Oct 2016 06:00:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2016 06:00:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C0A61C03BC for ; Fri, 14 Oct 2016 06:00:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id lRuGwkmdj-Xy for ; Fri, 14 Oct 2016 06:00:00 +0000 (UTC) Received: from mail-yw0-f178.google.com (mail-yw0-f178.google.com [209.85.161.178]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4408D5FB37 for ; Fri, 14 Oct 2016 05:59:59 +0000 (UTC) Received: by mail-yw0-f178.google.com with SMTP id t192so69161385ywf.0 for ; Thu, 13 Oct 2016 22:59:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=m1+23FIEUMdejryxt6QJvI8Ch2QiDUhe/eeszwpo7mY=; b=mHIpMSz9VkXPScgmunrtctnGjz1J9d0jeTe9ildFBZK2ecv0iHW66CBwUn6LkticgK uI42yq/ZkNDqE3UVB23zMje3KmlGZyyMrXDPbbTGqhi64ula8Pg/oMURpvB9i9PFLEzt Dz+ErXQ/AbGCQkLMFU5olU4VbRyQWJi6sBByLTuOM58JgqhL2mQF2MuLQuC3RXhoeehg CjJIPy8MgCjHy8le4l2NlGxmlbso3I1gPnDAP32UmaKicNMaQHEdcQpA7yhsfD50OqF/ RtywFk2D2B/owzT1xWbt4GTiqbRibIBiEhhPvgTRiHVGrkRpVNCYyC8YdCtVHzreVW4H A4Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=m1+23FIEUMdejryxt6QJvI8Ch2QiDUhe/eeszwpo7mY=; b=IKP5J7Vfen+TPWEyXicadXvc0Dj/vz8lTLHjis6bIb8jX7mmgKIQT/aBKAtm7zfiQ5 mUkKPgGJ4VDzdoAZsZ/4YNOneSLo94/MEl83QB7xuoU08PFkenHsyPYa0lsx4Sv9n5OA cIy9cfxCmf+qmWh6VN1yIQjUM1EJ1+vyjM3OURr6dDMY5BxzAkip1/giHkHLdExIGFJj wEqW4ry3sjicOWDfmJCVTsasTcfwcsucM8G1hyuwV3WnOUZT80kp7VXbSp41IhnSyw5h dzQn2HCN9EC5hdB9IDVhZtjAZXIe08UuJswV1Aoz4oN9bdJYXLyNexWDTmEm74YAVy12 iPZA== X-Gm-Message-State: AA6/9RlB2wgagyq/T+Su4q4xczF8BApN7QPtHCh8X2xQ76yic2ivEGz1o4yKrPsX7nRacAMu2jcTaHDJvsW4FA== X-Received: by 10.129.161.84 with SMTP id y81mr8585096ywg.347.1476424797695; Thu, 13 Oct 2016 22:59:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.10.202 with HTTP; Thu, 13 Oct 2016 22:59:57 -0700 (PDT) From: Peng Li Date: Thu, 13 Oct 2016 22:59:57 -0700 Message-ID: Subject: Extending session lifetime with client requests To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=001a114f7cd69ab3b6053eccef2c archived-at: Fri, 14 Oct 2016 06:00:03 -0000 --001a114f7cd69ab3b6053eccef2c Content-Type: text/plain; charset=UTF-8 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 words, will a client request extend the lifetime of the session by another session timeout? The delta will account for clock skew between client and server. In practice, the clock skew is bounded and very small (<<10 seconds) in a 10 seconds interval. Absolute clock skew doesn't matter. Only the clock rate skew matters. Cheers Peng --001a114f7cd69ab3b6053eccef2c--