Re: [Tzdist] tzdist examples
Lester Caine <lester@lsces.co.uk> Mon, 12 January 2015 10:09 UTC
Return-Path: <lester@lsces.co.uk>
X-Original-To: tzdist@ietfa.amsl.com
Delivered-To: tzdist@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1])
by ietfa.amsl.com (Postfix) with ESMTP id 8AED11A8A84
for <tzdist@ietfa.amsl.com>; Mon, 12 Jan 2015 02:09:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham
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 CVeFp7Z7kz4Y for <tzdist@ietfa.amsl.com>;
Mon, 12 Jan 2015 02:09:37 -0800 (PST)
Received: from mail4.serversure.net (mail4-2.serversure.net [217.147.176.214])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(No client certificate requested)
by ietfa.amsl.com (Postfix) with ESMTPS id AB2A31A1B57
for <tzdist@ietf.org>; Mon, 12 Jan 2015 02:09:35 -0800 (PST)
Received: (qmail 31641 invoked by uid 89); 12 Jan 2015 10:09:31 -0000
Received: by simscan 1.3.1 ppid: 31634, pid: 31638, t: 0.0950s
scanners: attach: 1.3.1 clamav: 0.96/m:52/d:10677
Received: from unknown (HELO ?10.0.0.8?)
(lester@rainbowdigitalmedia.org.uk@86.160.91.166)
by mail4.serversure.net with ESMTPA; 12 Jan 2015 10:09:31 -0000
Message-ID: <54B39D5B.3080405@lsces.co.uk>
Date: Mon, 12 Jan 2015 10:09:31 +0000
From: Lester Caine <lester@lsces.co.uk>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
rv:31.0) Gecko/20100101 Thunderbird/31.2.0
MIME-Version: 1.0
To: tzdist@ietf.org
References: <9E54BBDC7F272E0E5799E1FE@cyrus.local>
<CACzrW9D2UGZPPqEjrUdSZ28AXTc=RCfUzq5HBLPMSUMPg1ijgA@mail.gmail.com>
<C3F1BA4B3DCB5656A683870D@cyrus.local> <5499D3B4.1000507@cs.ucla.edu>
<B95F454529942901A2C436A7@cyrus.local> <54AAB197.5040102@cs.ucla.edu>
<CAFpi07wYYyPc3T7bRPEyrQD9EGSY=U9FakeL0VYJeN0Q1J3-8w@mail.gmail.com>
<54B262AB.6070408@lsces.co.uk> <54B2E134.2020408@cs.ucla.edu>
<54B2F454.408@lsces.co.uk> <54B31689.10702@cs.ucla.edu>
In-Reply-To: <54B31689.10702@cs.ucla.edu>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/tzdist/V3yVwECTmoJ6WNgG7MDiFQddpw0>
Subject: Re: [Tzdist] tzdist examples
X-BeenThere: tzdist@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <tzdist.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tzdist>,
<mailto:tzdist-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tzdist/>
List-Post: <mailto:tzdist@ietf.org>
List-Help: <mailto:tzdist-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tzdist>,
<mailto:tzdist-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 12 Jan 2015 10:09:44 -0000
On 12/01/15 00:34, Paul Eggert wrote: > Lester Caine wrote: >> It is only that the accessing URL needs to provide the >> current version in order to know that the server now has a new version >> to provide, > > No, the ETag does not need to be part of the URL: it's a separate > component of the protocol. A client can use a conditional GET with an > ETag to get either the latest version or an indication that the client > already has that version. That is how a client can know whether the > server has a new version without putting an explicit version number in > the accessing URL. Something is getting lost in the translation from brain to paper ;) If one looks up a page using a URL, the hash returned by the lookup as the ETag will change if the underlying content is different. If I ask for /expand/version/TZid ETag will be a fixed value which ever server provides it. Use /expand/version/TZid/since then the ETag will return the current version hash rather than requested version one. Drop the 'version' element and one can't move between servers safely since one does not know what is current at the alternate server. The URL needs to provide a version to work with, but also identify if it wants the extra information that this version is not now the current one. I THINK I am right when I say that if properly specified in tzdist, a client can create a local ETag for all of the data it already has cached and use that with the request for updates from the server without having to have first read that data from a server? /list/version/since would skip a download if the ETag of the local information matches the server response? >> if a server has not been updated an error >> is provided if the replacement server does not actually understand the >> version being requested. > > Sorry, I'm not following this. Are you thinking of a scenario where the > client has a more-recent version than the server? That's a problem, I > suppose, but it's not a problem tzdist should try to solve. It is EXACTLY the race condition I am trying to avoid! If the diary I am working with is built using a server that has yet to be updated. That is the APPLICATION has yet to be notified that there has been a change, but overnight I'm looking at a server that has already received the update, my version is more recent than the one being used by my information source. I can see the situation in the future where publishers trying to get ahead of the game publish short term changes only to have the change cancelled a few hours later. THAT is the sort of problem that 'changedsince' could iron out, since a TZid may appear in version+1 and then go again in version+2 so a /expand/TZid/version/since would flag a change of version number, but no change of content for that expand period. /list/version/since where version is not available from a new server being accessed would fail as invalid. This may be because the server has not retained historic records, or because for some reason it has not actually been updated. Both ARE potential problems which tzdist has to handle. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
- [Tzdist] tzdist examples Cyrus Daboo
- Re: [Tzdist] tzdist examples Daniel Migault
- Re: [Tzdist] tzdist examples Stephen Colebourne
- Re: [Tzdist] tzdist examples Cyrus Daboo
- Re: [Tzdist] tzdist examples Stephen Colebourne
- Re: [Tzdist] tzdist examples Cyrus Daboo
- Re: [Tzdist] tzdist examples Paul Eggert
- Re: [Tzdist] tzdist examples Doug Royer
- Re: [Tzdist] tzdist examples Cyrus Daboo
- Re: [Tzdist] tzdist examples Lester Caine
- Re: [Tzdist] tzdist examples Daniel Migault
- Re: [Tzdist] tzdist examples Stephen Colebourne
- Re: [Tzdist] tzdist examples Lester Caine
- Re: [Tzdist] tzdist examples Cyrus Daboo
- Re: [Tzdist] tzdist examples Lester Caine
- Re: [Tzdist] tzdist examples Daniel Migault
- Re: [Tzdist] tzdist examples Ken Murchison
- Re: [Tzdist] tzdist examples Daniel Migault
- Re: [Tzdist] tzdist examples Paul Eggert
- Re: [Tzdist] tzdist examples Paul Eggert
- Re: [Tzdist] tzdist examples Lester Caine
- Re: [Tzdist] tzdist examples Cyrus Daboo
- Re: [Tzdist] tzdist examples Lester Caine
- Re: [Tzdist] tzdist examples Doug Royer
- Re: [Tzdist] tzdist examples Tim Parenti
- Re: [Tzdist] tzdist examples Lester Caine
- Re: [Tzdist] tzdist examples Paul Eggert
- Re: [Tzdist] tzdist examples Lester Caine
- Re: [Tzdist] tzdist examples Paul Eggert
- Re: [Tzdist] tzdist examples Lester Caine
- Re: [Tzdist] tzdist examples Cyrus Daboo
- Re: [Tzdist] tzdist examples Lester Caine