Re: New I-D: Retry-Scope header field

Roberto Polli <robipolli@gmail.com> Wed, 27 May 2020 09:21 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 ABC3A3A0BED for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 27 May 2020 02:21:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.749
X-Spam-Level:
X-Spam-Status: No, score=-2.749 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.249, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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 xG0F9W8Kx7wI for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 27 May 2020 02:21:52 -0700 (PDT)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (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 D5DF33A0BEB for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 27 May 2020 02:21:52 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1jdsDV-0003f0-Av for ietf-http-wg-dist@listhub.w3.org; Wed, 27 May 2020 09:19:17 +0000
Resent-Date: Wed, 27 May 2020 09:19:17 +0000
Resent-Message-Id: <E1jdsDV-0003f0-Av@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <robipolli@gmail.com>) id 1jdsDU-0003eE-73 for ietf-http-wg@listhub.w3.org; Wed, 27 May 2020 09:19:16 +0000
Received: from mail-il1-x12c.google.com ([2607:f8b0:4864:20::12c]) by mimas.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <robipolli@gmail.com>) id 1jdsDS-0004wb-Dm for ietf-http-wg@w3.org; Wed, 27 May 2020 09:19:15 +0000
Received: by mail-il1-x12c.google.com with SMTP id v11so5912723ilh.1 for <ietf-http-wg@w3.org>; Wed, 27 May 2020 02:19:14 -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; bh=8kxeAQuVhNIbnkMMp+UEX1eeqCPm4XvmItPEZ/04EaE=; b=qkdKqlZUbqa0Bj0i3aXYHOL025elBlNXnSzBrU42IelR1Nx0Gg6dUXmKcpWiZQGejG BqnH3kEYY8WabOtE5qQKgERQYKvzd0Mr6aYLus+r34fvE/D1aOT/XR6vkaAS7QczYnCg MECynxwT51C9OM7jmVKnIoVU4a4wq6LN75SfAtMNkbnyMcBPSo4AB5JvbTdxTPjEMD03 OBp3ZucV3rVOJe/mBUEr5Pthmn/ph3j60CrI74KF+KpkLL89f46UJEX9C1GpD9HXXf06 yLlUbhEtLS+ZecaBrAN+f6XWUUoiYDdkQ+rfsOBcNVt+/+Dgvlhhzdb6tT1dHiA/QjfZ +w+A==
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; bh=8kxeAQuVhNIbnkMMp+UEX1eeqCPm4XvmItPEZ/04EaE=; b=d7yoMp5F5N1NY2cbgCih2CoKYH3iTY/GVQPDIRH4hgsy0BcwlD3gvrpLyxO5xz9ItJ e51snOf9cfBgCJuro7uyEDWN84SlDNg0tDCk1TpIIvviDFu7xON7zZTmvrETtwd/hJEN LWdKp9DFXbkYNrgjcFtWtiCsAAnDTBgwqe0OENjZnFuXC2JZodP3AClUoILR6rXEq8P2 WQh9sfqaYjw/TYVSNe785hzucKgv62fobh6JdS6CQRUwgmrmy/tT9kqIvwQhNInIzL+h A9U5xCrhlkNlGwv7W9SkrKJkeoeC7asJSAXp7R23fE6p0PI3Vnd/Z2/mB+MuMlqtdafq jh1g==
X-Gm-Message-State: AOAM53264gE91g6wCwZ/YE385veXkfMtQ17bdYKNKhjRPC9E8QTXlXGH ji+wDNYj+0VzAZEK+rwiT2qmD5CIsO6S52ex0lZJvzXczwk=
X-Google-Smtp-Source: ABdhPJxxG02Jv9+wPC8V7+c8jQqJ7LvoGodHqvjrMqSwymd/93GnF42v+smduK1FliqAD+d07jRrBcE5eo5jv1sR2Tg=
X-Received: by 2002:a05:6e02:6cf:: with SMTP id p15mr4938910ils.146.1590571142243; Wed, 27 May 2020 02:19:02 -0700 (PDT)
MIME-Version: 1.0
References: <CAP9qbHXOk9-+9DeSz2yETnbw=8w=XBou-r=h73NeuVEGNsCsGA@mail.gmail.com> <503D2E5D-5D71-43CB-BF11-527B059D8C55@mnot.net>
In-Reply-To: <503D2E5D-5D71-43CB-BF11-527B059D8C55@mnot.net>
From: Roberto Polli <robipolli@gmail.com>
Date: Wed, 27 May 2020 11:18:51 +0200
Message-ID: <CAP9qbHX3Y4z=4BGE_pC7vfiUzonSJ-uk9+2Jsnf2TMZ4ATCt+g@mail.gmail.com>
To: Mark Nottingham <mnot@mnot.net>
Cc: HTTP Working Group <ietf-http-wg@w3.org>, Martin Thomson <mt@lowentropy.net>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2607:f8b0:4864:20::12c; envelope-from=robipolli@gmail.com; helo=mail-il1-x12c.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: mimas.w3.org 1jdsDS-0004wb-Dm 66512d90145a214164cbed9c378a8e7c
X-Original-To: ietf-http-wg@w3.org
Subject: Re: New I-D: Retry-Scope header field
Archived-At: <https://www.w3.org/mid/CAP9qbHX3Y4z=4BGE_pC7vfiUzonSJ-uk9+2Jsnf2TMZ4ATCt+g@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/37716
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>

Hi Mark,

thanks for your great feedback!

replies inline:


Il giorno mar 21 apr 2020 alle ore 09:22 Mark Nottingham
<mnot@mnot.net> ha scritto:
> I don't know that it makes sense to put a different scope on retries;
> the only thing that's able to be retried is a request that's already been made
>  for 503, I [..] doubt that a browser is going to stop making requests [..] based upon the value of this header[...]
>  [W]hat you expect a consumer to do with this information?
During API interactions (eg. the UA is a machine)  applications or api
gateways usually return either 503 or 429 if the service is saturated,
overloaded or over-quota. In those cases the scope helps shaping the
api client behavior.

> Retry-After is also defined to be used by 413 Payload Too Large, and that doesn't make any sense to scope beyond the current request payload.
Agree, 413 is about _this_ request

> I _think_ the semantic you're looking for is attached to the status code (in the most obvious case, 503), not the Retry-After header.
Retry-After is defined for 429 too, see
https://tools.ietf.org/html/rfc6585#section-4 and this kind of usage
is quite similar to the one I intend.

> I wonder is whether there are other status codes that might be relevant -- i.e., whether one should just do a "scope a 503" header,
> or one for any potential status code. Of 5xx status codes, 503 is the only one that has an obvious fit.
While a `503-Scope` make sense, the fact that 429 refers to
Retry-After makes me lean on Retry-Scope.
I'll reference 429 it in the draft.

Spec link:

 - https://ioggstream.github.io/draft-polli-retry-scope/draft-polli-retry-scope.html

Thanks++ and let me know,
R.