Re: [Webpush] Provide a method to indicate rate-limit issues

Benjamin Bangert <bbangert@mozilla.com> Sun, 01 November 2015 23:58 UTC

Return-Path: <bbangert@mozilla.com>
X-Original-To: webpush@ietfa.amsl.com
Delivered-To: webpush@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E55571B3B8E for <webpush@ietfa.amsl.com>; Sun, 1 Nov 2015 15:58:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.278
X-Spam-Level:
X-Spam-Status: No, score=-1.278 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
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 MhfR9gKftO4Z for <webpush@ietfa.amsl.com>; Sun, 1 Nov 2015 15:58:12 -0800 (PST)
Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (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 9C4EF1B3B8B for <webpush@ietf.org>; Sun, 1 Nov 2015 15:58:11 -0800 (PST)
Received: by wmeg8 with SMTP id g8so46487365wme.0 for <webpush@ietf.org>; Sun, 01 Nov 2015 15:58:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mozilla_com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1yLDOGx+qQ8fkN/aBbMfNJl4d7AE3l1Phzi82/adbB8=; b=z8aJfRokdeEzbkXZQuMmiEnadX5DRmQPW6z5XAcYpRZ6DBQkHxJ60xH4Za8e1NaD97 okou8DTg323d9GsUfNtvYsymzIpTBN83L2ZlaljVpaHv8Tz2O86F/GOcLJPDtMRGHmnN HuMxR0SbDku7RccYDqVpPVNhJJFgWs2tYg4Jb7K8HHNgJnfJeNslNJ1rNOyT3vrupfdM dxqHdKe6IDH0S/4ineMVDYwzcSsaKlI95TDEaC5Ki/mkqwqgItdOPbrfa1769VDhJvze 1Y26MmM+OsQiR7Mx1pLSjVzodHlBpNHBJoD0pqLL19Cgs7LSVWBHbwSsIc1nM9TRtfTI YYAg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=1yLDOGx+qQ8fkN/aBbMfNJl4d7AE3l1Phzi82/adbB8=; b=ARVQ0GXy/vFs3o4en0IB0sV5VL7Pc84v+VSKzjvTs0MCbq2+TPs8BCwb7cJJ6Zocjw PNDDW+XVyqC6Y5g94gvb4wK+0Fh5yggQIGYXgf970Bt1bTUycMVEvbs2NtyHW6mEGarj Ze3akX//90786SFPGiSKCZf3HLzuqY+Xdn66g7TPieLnevEtv9bwdiMI/YN0+CKmQ3R0 RRnXTWi3J2Dss+GIVmO6ZilBGwp4ru67Ih5okrJ+8AJgOsflq2cuozoSBLGpPDUzhE3H YiN4FnivomRl0DvMwTs5hYeV814jnqBlqeYunvcoQ0ef2JnVlmBO9EiNY91FJ3NyaFHM Bk7g==
X-Gm-Message-State: ALoCoQlQ0GmU2OA90xnUK/x1jeEd3rMCWZT3nTUy/s3+j3XBusJ9Jz0mC8C00VbcE3EWgumTv20i
MIME-Version: 1.0
X-Received: by 10.28.217.18 with SMTP id q18mr10294982wmg.10.1446422289055; Sun, 01 Nov 2015 15:58:09 -0800 (PST)
Received: by 10.27.155.207 with HTTP; Sun, 1 Nov 2015 15:58:09 -0800 (PST)
In-Reply-To: <BY2PR0301MB06474751D2491959EE53ABFE832E0@BY2PR0301MB0647.namprd03.prod.outlook.com>
References: <CABp8EuKLJQQbyPCbRTTq=ZxYaQaMCQPYe+FUveUs=3tGF4MHpg@mail.gmail.com> <BY2PR0301MB06474751D2491959EE53ABFE832E0@BY2PR0301MB0647.namprd03.prod.outlook.com>
Date: Sun, 01 Nov 2015 15:58:09 -0800
Message-ID: <CABp8EuLQviZ1jDk2W15A-7RBV2HFzZq3XKSyWY_MfdoOTe3TWg@mail.gmail.com>
From: Benjamin Bangert <bbangert@mozilla.com>
To: Brian Raymor <Brian.Raymor@microsoft.com>
Content-Type: multipart/alternative; boundary="001a1146905ebc24590523836eb9"
Archived-At: <http://mailarchive.ietf.org/arch/msg/webpush/Ldb3PhYrNVDqEBy03SUTY35KYjw>
Cc: "webpush@ietf.org" <webpush@ietf.org>
Subject: Re: [Webpush] Provide a method to indicate rate-limit issues
X-BeenThere: webpush@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Discussion of potential IETF work on a web push protocol <webpush.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/webpush>, <mailto:webpush-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/webpush/>
List-Post: <mailto:webpush@ietf.org>
List-Help: <mailto:webpush-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/webpush>, <mailto:webpush-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 01 Nov 2015 23:58:14 -0000

Yep, I think this would work fine.

On Sat, Oct 31, 2015 at 3:04 PM, Brian Raymor <Brian.Raymor@microsoft.com>
wrote:

> On October 31 2015 at 4:24 AM, Benjamin Bangert <bbangert@mozilla.com>
> wrote:
>
> > It would be nice to have a uniform way to indicate to an Application
> Server that its being rate-limited
> > and it should back-off on its sending, in a separate way than using a
> 503. 503's are used for a variety
> > of issues, separate from rate-limiting, perhaps a different status code,
> and/or a header indicating
> > when the app-server should resume.
>
> The earlier proposal from JR -
> http://www.ietf.org/mail-archive/web/webpush/current/msg00308.html - was
> to include a reference to 429 with Retry-Header:
>
> https://tools.ietf.org/html/rfc6585
>
>    The 429 status code indicates that the user has sent too many
>    requests in a given amount of time ("rate limiting").
>
>    The response representations SHOULD include details explaining the
>    condition, and MAY include a Retry-After header indicating how long
>    to wait before making a new request.
>
>    For example:
>
>    HTTP/1.1 429 Too Many Requests
>    Content-Type: text/html
>    Retry-After: 3600
>
> Would this address your requirements?
>
> ...Brian
>
>
>
>