Re: Retry-After in UNIX Timestamp instead of HTTP-Date

Roberto Polli <robipolli@gmail.com> Wed, 07 August 2019 14:19 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EC9E7120019 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 7 Aug 2019 07:19:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.799
X-Spam-Level:
X-Spam-Status: No, score=-2.799 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.201, MAILING_LIST_MULTI=-1, SPF_PASS=-0.001, URIBL_BLOCKED=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 6uB1alCFEUYw for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 7 Aug 2019 07:19:37 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [IPv6:2603:400a:ffff:804:801e:34:0:38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 089EF12002E for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 7 Aug 2019 07:19:36 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1hvMkI-00075l-UG for ietf-http-wg-dist@listhub.w3.org; Wed, 07 Aug 2019 14:16:54 +0000
Resent-Date: Wed, 07 Aug 2019 14:16:54 +0000
Resent-Message-Id: <E1hvMkI-00075l-UG@frink.w3.org>
Received: from titan.w3.org ([2603:400a:ffff:804:801e:34:0:4c]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <robipolli@gmail.com>) id 1hvMkF-000758-DN for ietf-http-wg@listhub.w3.org; Wed, 07 Aug 2019 14:16:51 +0000
Received: from mail-vs1-xe31.google.com ([2607:f8b0:4864:20::e31]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from <robipolli@gmail.com>) id 1hvMkD-00013a-Ih for ietf-http-wg@w3.org; Wed, 07 Aug 2019 14:16:51 +0000
Received: by mail-vs1-xe31.google.com with SMTP id y16so60710568vsc.3 for <ietf-http-wg@w3.org>; Wed, 07 Aug 2019 07:16:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=AY7DP0h+SQvTaapbd6Ld0nxAKt31CiTaaCFiE3CiGo8=; b=owPxp8TMJ8gH28zrN+GNG3GYuSU+V4jXh0VzP/m+I+PThxpzSlm7PAGrKl1VLiE0Xg CIZksQazDCUMy4w9l1Uo2r5ymx1bBjIHKU/tYWFxh5k2HuFMctiZqEJTS1oDLHXYeHdt iP9XqM/1rPC9r6RWZVD5drDTjuyCXiJ95kf2GM9x59ky4lGo4hEW7Lhgxaq14Ce5eNHe WiVHr6iyEYk3M22cXbdl+tQzCWyiIcFhODhvbr77SWJsk0Qa7IjbLS5A2babHhP41ZV/ KdxILuuwLXMD9R384qpy2mkQX6NdtvNa8jeSboLBOK8BfR6UAyG/joHp32g0XmpwMFBs THMQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=AY7DP0h+SQvTaapbd6Ld0nxAKt31CiTaaCFiE3CiGo8=; b=rrXsOhGTzSmlSzoMqMwViOku94cOVlMun767Qs6P1niZWa3wzycY/HKD+Y8bQFFhuw hroqeWiNjTPwTTlyplUolD9RPKu0wlBqQ2oy+D0d8xp+GeNWq8j2ZEd6KPNsGJ5Dmeq8 C1XJunkQpgvmQxHUfcRvGLQVMm0csVDm+47zPokiXubHmu+EDi/XyzC+81J5MxQDBR/r fXcFUmj6oYCUdHtm092zFv7TH3FihAVcehgF1UDvKHYDbfm0Jvc825VapJeFMDWFEzql 9Zj81tMUHj/KzkplJcM2J2Z2VtLM8PBvliA1vGtNkqE7Fezb9mHjX/xypmhtbjwlQ9FO 3d9A==
X-Gm-Message-State: APjAAAWhMW0Gwxb9L9iDB6g1PfvjR/FhDLBOJ6HJ8oo+CD1k3F29vRcQ ExnBmowrVQPeInDOod0lcrS+9OvOvcqsBZCZoU4=
X-Google-Smtp-Source: APXvYqwjQseR0TJcIO9sdkmPI13CIPRYZJfnt+V3bcPKtSxRcs6CiAjC4/hWVIJk1GIlsweeP0etr+pOhK1cdOa6OZc=
X-Received: by 2002:a67:7f85:: with SMTP id a127mr6251589vsd.8.1565187387716; Wed, 07 Aug 2019 07:16:27 -0700 (PDT)
MIME-Version: 1.0
References: <CAP9qbHXfX9Y7OjfP3gEtxCtDkd1nZwe7B9CK5FY_OeKf1BQX4A@mail.gmail.com> <716beea3-d7f7-4911-18bc-a23fd6b382fc@treenet.co.nz> <CACHSkNqBCvegNCW5-cQPt93M-_RCp+2Cw+grPMn9Kz2jgrPi+Q@mail.gmail.com> <CAD3-0rMY=+HD=d5cW6=-aa3tsV4oXnU39ArDO18XjhWJvQ3Gug@mail.gmail.com> <CACHSkNo+P-43nx4TrGtgiz8QwQx5545=vutTxqKqjKKQV_MgKA@mail.gmail.com>
In-Reply-To: <CACHSkNo+P-43nx4TrGtgiz8QwQx5545=vutTxqKqjKKQV_MgKA@mail.gmail.com>
From: Roberto Polli <robipolli@gmail.com>
Date: Wed, 7 Aug 2019 16:16:14 +0200
Message-ID: <CAP9qbHVOiQMt552uyz9jcXnSOZ8JM0WAVZzmqKKZ8=4T=QUB9Q@mail.gmail.com>
To: =?UTF-8?Q?Philipp_Junghann=C3=9F?= <teamhydro55555@gmail.com>
Cc: Wenbo Zhu <wenboz@google.com>, Amos Jeffries <squid3@treenet.co.nz>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2607:f8b0:4864:20::e31; envelope-from=robipolli@gmail.com; helo=mail-vs1-xe31.google.com
X-W3C-Hub-Spam-Status: No, score=-5.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1hvMkD-00013a-Ih aa6fcde45ec59fbff2c884c09d1c1590
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Retry-After in UNIX Timestamp instead of HTTP-Date
Archived-At: <https://www.w3.org/mid/CAP9qbHVOiQMt552uyz9jcXnSOZ8JM0WAVZzmqKKZ8=4T=QUB9Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/36940
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Thanks @all for your replies!

Il giorno mar 6 ago 2019 alle ore 21:03 Philipp Junghannß
<teamhydro55555@gmail.com>; ha scritto:
>>> delay in whatever time unit needed is a good Idea,
>>> [..] without needing to care for DST, leap days/seconds or whatever,
Agree.

> ... the advantage over the unixtime is that you dont get to deal with the Year 2038 problem
Agree.

Am Mo., 5. Aug. 2019 um 14:06 Uhr schrieb Amos Jeffries <squid3@treenet.co.nz>;:
>> Wenbo Zhu <wenboz@google.com>;:
>> And it needs to be a float type (32-bit) to support sub-second intervals. (also my earlier question on "Prefer: timeout= ...."  ... )
>Is it really worth telling a client to re-try in less than a second?
> At those timescales the server can just queue the request and answer
> when it can.
I agree with Amos about subsecond precision, as we have network and processing
latency and clock skew.

@wenboz, can you provide some use case where subsecond precision
can be effectively used?

As I wrote in https://lists.w3.org/Archives/Public/ietf-http-wg/2019JulSep/0201.html
I'm writing an I-D on RateLimit headers and I'm investigating
the relations between those headers and Retry-After.

Thanks for your feedback
and have a nice day,
R: