Re: [Trans] Long Poll

Evgeny <xramtsov@gmail.com> Thu, 21 March 2019 16:41 UTC

Return-Path: <xramtsov@gmail.com>
X-Original-To: trans@ietfa.amsl.com
Delivered-To: trans@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2F6FA1313CE for <trans@ietfa.amsl.com>; Thu, 21 Mar 2019 09:41:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ymFV8PMfCaWJ for <trans@ietfa.amsl.com>; Thu, 21 Mar 2019 09:41:49 -0700 (PDT)
Received: from mail-yw1-xc34.google.com (mail-yw1-xc34.google.com [IPv6:2607:f8b0:4864:20::c34]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6765E1313CB for <trans@ietf.org>; Thu, 21 Mar 2019 09:41:45 -0700 (PDT)
Received: by mail-yw1-xc34.google.com with SMTP id w66so5265631ywd.4 for <trans@ietf.org>; Thu, 21 Mar 2019 09:41:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:subject:to:message-id:in-reply-to:references:mime-version; bh=0dPv5P6W3fvzAWCK4miGNpuh7cjeXPD0Pvdhqt+c/EQ=; b=kEK9ufEXQY7s39+2aKDigdh4wx489J6ecBFhTv6G0ToJDjEEZkuZZ2B03KcUWXsIGN EPGFPj+g6srXr4uFrNzbPazMirh0NTqgo+Qixl763wExa9Ha5yMqnQR7DWp3wGqu1crO Q+6rJXmGwCWrmDYNHH1VC+bh971wL5DmbuYMVJx8t9N8aaAr7Fi/ayVHhrq6TPmaRw0q z3V2G+r/r0/mSEW0jOgc2E9XgkQhcUOdU1LECYFfRy/S7SmvJBMi8Xh3+WOi/RZM5/SL lwpo2lClsvTyfP/frmV2bmBMZucPvDJG+Tlf0uEmRBibY1IjRvJH7vdBHA2LhxVjEGMy 5Clw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:message-id:in-reply-to :references:mime-version; bh=0dPv5P6W3fvzAWCK4miGNpuh7cjeXPD0Pvdhqt+c/EQ=; b=k6wogSNxy3XbkB1o7tPCmh0NHnXthzHdaa3JwclWgHccRuZRKxnMF8DmOT3uqMrbNX t73YpFM5cwhG4cPfkbWs+UEGsBbq2vd9uy2Aprli4e+pQtXyssq/YtYnO65IA5m9vfQc TqcsJPVJKfWWD8VZPIfUSw2cIRC1ptYh3tFv7yek08GP2se6/md3epBQ5LdbREDb6P8p +n2g89QoEd7Zmi1p4w34htgG3OmxKdrADQBZTkY6x2/OxFe19MYu/YxboEKajLCCamJ3 yJG5eRwGsUjk2PSezgYTeI7kslO7cVcslinxUBy14enuH1C0u6/DWxTmeGoALMMviuC9 1k2A==
X-Gm-Message-State: APjAAAUaDue5t0fo37A0ozXo18vj+F3YTQ0CWP274G7R3MRav9XUmCbo eCQjdaxVDXY0n0nb6/I7XUEYDG1P
X-Google-Smtp-Source: APXvYqzSX4zmd5IZQqtcruIiT5NScjD7cv/r05ZDwTQIjxo8H6xRZ1xh8IVcNgGZGtq58Giweu6CMg==
X-Received: by 2002:a81:1155:: with SMTP id 82mr3857826ywr.92.1553186504428; Thu, 21 Mar 2019 09:41:44 -0700 (PDT)
Received: from [192.168.1.102] ([185.155.18.125]) by smtp.gmail.com with ESMTPSA id h184sm1864401ywb.23.2019.03.21.09.41.42 for <trans@ietf.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Mar 2019 09:41:43 -0700 (PDT)
Date: Thu, 21 Mar 2019 19:41:40 +0300
From: Evgeny <xramtsov@gmail.com>
To: trans@ietf.org
Message-Id: <1553186500.1179.1@smtp.gmail.com>
In-Reply-To: <CALzYgEfEgO2R_SwsAE-UtqV0rPAX9trcREt2jCTw_i1OHsXQFg@mail.gmail.com>
References: <1553165248.1179.0@smtp.gmail.com> <CALzYgEfEgO2R_SwsAE-UtqV0rPAX9trcREt2jCTw_i1OHsXQFg@mail.gmail.com>
X-Mailer: geary/0.12.4
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Archived-At: <https://mailarchive.ietf.org/arch/msg/trans/B13z0Ge6W4DOzfEzbAdfXz9XnbQ>
Subject: Re: [Trans] Long Poll
X-BeenThere: trans@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Public Notary Transparency working group discussion list <trans.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/trans>, <mailto:trans-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/trans/>
List-Post: <mailto:trans@ietf.org>
List-Help: <mailto:trans-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/trans>, <mailto:trans-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 21 Mar 2019 16:41:53 -0000

On Thu, Mar 21, 2019 at 7:03 PM, Eran Messeri <eranm@google.com> wrote:
> The reason is it doesn't make sense to ask for new entries unless you 
> know they're there - by first calling get-sth to learn of a new tree 
> head.

In this case I can poll for get-sth, no? From section 8.2:

 > Fetch the current STH (Section 5.2).  Repeat until the STH changes.

How this "repeat" will look in practice? Like while(0) {... sleep(1)}?