Re: [Webpush] Require the TTL header
Martin Thomson <martin.thomson@gmail.com> Wed, 17 February 2016 19:32 UTC
Return-Path: <martin.thomson@gmail.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 5ED651A8794
for <webpush@ietfa.amsl.com>; Wed, 17 Feb 2016 11:32:40 -0800 (PST)
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, SPF_PASS=-0.001] 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 VzDWl081P2NQ for <webpush@ietfa.amsl.com>;
Wed, 17 Feb 2016 11:32:38 -0800 (PST)
Received: from mail-io0-x236.google.com (mail-io0-x236.google.com
[IPv6:2607:f8b0:4001:c06::236])
(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 2CF811A8824
for <webpush@ietf.org>; Wed, 17 Feb 2016 11:32:37 -0800 (PST)
Received: by mail-io0-x236.google.com with SMTP id 9so47614724iom.1
for <webpush@ietf.org>; Wed, 17 Feb 2016 11:32:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:cc:content-type;
bh=Ttl+CZSeCXcmIvmSNsVlSnUuGKd2yb19DO9brdX2yY0=;
b=PPI9mVME334Bd+1ymFhq0ystGOJRAkvP0b2yYX8Yei3+PqglYbLnGHOVAGz8tUFJTp
oK9UBHgBFNwOm4MSerTe6x5oN2I9ntVjVlOgxeiZp67CExPHVGt6FwTFEx6jmJ0K14ML
pnN1xOujBHDROdCdYHlGhC9AsUn28CEk3xh7r8oa36ZydJ2sr5B+UU7TDqgTRwGc/81g
MvXSuDvGWGMOVApejRNHgUHRT/oKEqboC+pjX9KDRLxKRGorw6ndgZHxoMcMRnpRVTTd
ox8zzUkVOYXHdQReN2zY3k360xPzZVymjaeigR09EcLeMRzvABpamB+vnAMwNBYI10xh
hWQA==
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=Ttl+CZSeCXcmIvmSNsVlSnUuGKd2yb19DO9brdX2yY0=;
b=d9g7Lh6BwslAGPaPA9kHCKOKir4pa6LR8qiiH1TDxN5SnW+4mwAb64QpAwM0EUjVHg
NMXxKDXNcku5pfsukFcIH55CUhGW7I0LQxzLKZHXBPBTIuhi++ewyo7t0ygmW1aef5D8
EdeqLaqjU7hfwG+RC2mV4dz1+AHMqHuVVfRomXOORcnQDNCARiEY1FtzqXQHqbp527NV
UipYy0cLefn4xP7E9Fa9VLv7wq6ufTLGWuEk2nKlYYTW3Wdbug0O9PxWk3xDcBZR7f0D
HELhxV9xpLaRfHBlxt0BB0Oo8PxGlhYtJ2h1UFQ0Zrk62Top3k4x4qIMIT2jsQ6rQ7l+
ecyA==
X-Gm-Message-State: AG10YOR6TZSqHYgsMKPa64DvtM3on3iKjGC0qclMwV/b3eMwZJ1iwSc+gQIO7QqdlO6EVXB3MBJRsRoIgfYi8g==
MIME-Version: 1.0
X-Received: by 10.107.16.153 with SMTP id 25mr5246033ioq.100.1455737556580;
Wed, 17 Feb 2016 11:32:36 -0800 (PST)
Received: by 10.36.53.79 with HTTP; Wed, 17 Feb 2016 11:32:36 -0800 (PST)
In-Reply-To: <BY2PR0301MB06471E5A3BE1442A4EAE0DF683AD0@BY2PR0301MB0647.namprd03.prod.outlook.com>
References: <BY2PR0301MB06471E5A3BE1442A4EAE0DF683AD0@BY2PR0301MB0647.namprd03.prod.outlook.com>
Date: Thu, 18 Feb 2016 06:32:36 +1100
Message-ID: <CABkgnnWyc9tX8Z+KwEVdfp6zJDgSFok0Z4Z67uzjCNh-apzBTw@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Brian Raymor <Brian.Raymor@microsoft.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/webpush/YA2eJQk1NSsBDbFJtWOYzeQh5GY>
Cc: Costin Manolache <costin@google.com>, "webpush@ietf.org" <webpush@ietf.org>
Subject: Re: [Webpush] Require the TTL header
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: Wed, 17 Feb 2016 19:32:40 -0000
This matches my understanding and seems like a reasonable plan. If you aren't persisting anything, and you don't need a good message identifier (because you are fully proprietary on the other side), just crank out a random number and tack it onto a junk URL. On 17 February 2016 at 09:44, Brian Raymor <Brian.Raymor@microsoft.com> wrote: > > On Sat, Feb 6, 2016 at 12:48 PM, Costin Manolache <costin@gmail.com> wrote: > >> I assume 202 (Accepted) would be better for TTL=0 if the service is not actually storing the message. > > My reading of 202 (Accepted) is that it's intended for asynchronous operations: > > http://tools.ietf.org/html/rfc7231#section-6.3.3 > > The 202 response is intentionally noncommittal. Its purpose is to > allow a server to accept a request for some other process (perhaps a > batch-oriented process that is only run once per day) without > requiring that the user agent's connection to the server persist > until the process is completed. The representation sent with this > response ought to describe the request's current status and point to > (or embed) a status monitor that can provide the user with an > estimate of when the request will be fulfilled. > > I suggest that we require the TTL - https://github.com/webpush-wg/webpush-protocol/issues/76 - > but maintain the current behavior where a Location is returned even for TTL=0. There are already > special cases in the text for TTL=0 indicating that the resource may be deleted before the user agent can > acknowledge a message. > > As I noted in my earlier response to Ben, the Location resource is also subsequently required for the > synthesized GET: > > https://tools.ietf.org/html/draft-ietf-webpush-protocol-03#section-7.1 > > Each push message is pushed as the response to a synthesized GET > request sent in a PUSH_PROMISE. This GET request is made to the push > message resource that was created by the push service when the > application server requested message delivery. > > ...Brian > > _______________________________________________ > Webpush mailing list > Webpush@ietf.org > https://www.ietf.org/mailman/listinfo/webpush
- Re: [Webpush] Require the TTL header Costin Manolache
- Re: [Webpush] Require the TTL header Benjamin Bangert
- Re: [Webpush] Require the TTL header Costin Manolache
- [Webpush] Require the TTL header Benjamin Bangert
- Re: [Webpush] Require the TTL header Brian Raymor
- Re: [Webpush] Require the TTL header Martin Thomson
- Re: [Webpush] Require the TTL header Miguel Garcia
- Re: [Webpush] Require the TTL header Brian Raymor
- Re: [Webpush] Require the TTL header Benjamin Bangert
- Re: [Webpush] Require the TTL header Benjamin Bangert
- Re: [Webpush] Require the TTL header Brian Raymor
- Re: [Webpush] Require the TTL header Martin Thomson
- Re: [Webpush] Require the TTL header Costin Manolache
- Re: [Webpush] Require the TTL header Brian Raymor