Re: [Webpush] Require the TTL header

Brian Raymor <Brian.Raymor@microsoft.com> Fri, 19 February 2016 18:09 UTC

Return-Path: <Brian.Raymor@microsoft.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 8AAD81B33CC for <webpush@ietfa.amsl.com>; Fri, 19 Feb 2016 10:09:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.002
X-Spam-Level:
X-Spam-Status: No, score=-2.002 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_PASS=-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 2L-mAglwTYXu for <webpush@ietfa.amsl.com>; Fri, 19 Feb 2016 10:09:53 -0800 (PST)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0763.outbound.protection.outlook.com [IPv6:2a01:111:f400:fc10::1:763]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C9C161B33C5 for <webpush@ietf.org>; Fri, 19 Feb 2016 10:09:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=nZXeW7xVk7ZrqFniwtZqDtKHPmhyn/CJB+XN5J2JK24=; b=M/J/xXnO2QCH48pDki8EOZMVYd47rjZYSDTkgq6o8t6eR8/UTEGnK2L/8jhlRo3LmQlAmJYJzyOUKaLv8SHD1C6ue5NMiJzVrhFaC36/wbDPfpfQzOxbkwOD8XJ6t3N3zsKe+i2OMzC3lXy4Zh1Mf95lzqy3RPFcZ3UhYO4TcY8=
Received: from BY2PR0301MB0647.namprd03.prod.outlook.com (10.160.63.14) by BY2PR0301MB0646.namprd03.prod.outlook.com (10.160.63.139) with Microsoft SMTP Server (TLS) id 15.1.409.15; Fri, 19 Feb 2016 18:09:35 +0000
Received: from BY2PR0301MB0647.namprd03.prod.outlook.com ([10.160.63.14]) by BY2PR0301MB0647.namprd03.prod.outlook.com ([10.160.63.14]) with mapi id 15.01.0409.017; Fri, 19 Feb 2016 18:09:35 +0000
From: Brian Raymor <Brian.Raymor@microsoft.com>
To: Costin Manolache <costin@gmail.com>
Thread-Topic: [Webpush] Require the TTL header
Thread-Index: AQHRabq/NNt0i5J5AE6H2BK5Tqj6DJ8zrMCw
Date: Fri, 19 Feb 2016 18:09:35 +0000
Message-ID: <BY2PR0301MB0647D04F6AF215439D07080D83A00@BY2PR0301MB0647.namprd03.prod.outlook.com>
References: <BY2PR0301MB06471E5A3BE1442A4EAE0DF683AD0@BY2PR0301MB0647.namprd03.prod.outlook.com> <CAP8-Fqm_gRebvBFGCAXiirz24YN514fupq1BUvYDv_O8HjfTpQ@mail.gmail.com>
In-Reply-To: <CAP8-Fqm_gRebvBFGCAXiirz24YN514fupq1BUvYDv_O8HjfTpQ@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=microsoft.com;
x-originating-ip: [2601:600:8000:5a8:ccdc:8fb0:107c:4e51]
x-ms-office365-filtering-correlation-id: bf230f57-d863-4317-4b8c-08d33957d345
x-microsoft-exchange-diagnostics: 1; BY2PR0301MB0646; 5:AZ+OLZs1zp6ksoxws9MeRfvBpI/2u1YMJNG+u26eMWcKhcLAo3UVMb/ooFkeaRLKDZbfX9xbGTuHWyEydU9wfC+1+er7VDIPnC5DYQcuGKYETXaHoGQZ5ft7PX08FLHG8qsru2VSwCf/W8w4B941mA==; 24:TF9rj1GNSfmSNWIQr/SAipYFogY0PK39Z+VFXOrFBebxhBRxnNK+mcLbz3UnUiYKFVMVv7ycMzmVjyinnUxXQn4oOS+8Y3pflNG1QCKn7ko=
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB0646;
x-microsoft-antispam-prvs: <BY2PR0301MB064638FCA52064469F907B3083A00@BY2PR0301MB0646.namprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(61426038)(61427038); SRVR:BY2PR0301MB0646; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0301MB0646;
x-forefront-prvs: 08572BD77F
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(45074003)(24454002)(377454003)(4326007)(2906002)(92566002)(76576001)(3280700002)(5002640100001)(5003600100002)(74316001)(110136002)(189998001)(5001960100002)(5008740100001)(106116001)(2950100001)(99286002)(33656002)(1411001)(2900100001)(11100500001)(77096005)(50986999)(54356999)(15975445007)(10090500001)(19580405001)(122556002)(19580395003)(40100003)(76176999)(86612001)(6116002)(87936001)(1096002)(86362001)(3660700001)(102836003)(5004730100002)(1220700001)(10400500002)(5005710100001)(586003)(10290500002)(3826002); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR0301MB0646; H:BY2PR0301MB0647.namprd03.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en;
spamdiagnosticoutput: 1:23
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Feb 2016 18:09:35.6656 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB0646
Archived-At: <http://mailarchive.ietf.org/arch/msg/webpush/w-CS2pTca5iJPP03bCAu83CiJEg>
Cc: "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: Fri, 19 Feb 2016 18:09:59 -0000

I've closed the "Require the TTL" issue - https://github.com/webpush-wg/webpush-protocol/issues/76 - with - https://github.com/webpush-wg/webpush-protocol/pull/77 .


From: Costin Manolache [mailto:costin@gmail.com] 
Sent: Wednesday, February 17, 2016 11:38 AM
To: Brian Raymor <Brian.Raymor@microsoft.com>
Cc: Costin Manolache <costin@google.com>om>; webpush@ietf.org
Subject: Re: [Webpush] Require the TTL header


On Tue, Feb 16, 2016 at 2:44 PM, 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.

This is pretty much what webpush is doing - accepts the request, and some other 
process ( the connection side ) may deliver it later :-)
However it may be confusing, so I'm fine either way.

 
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.

+1
 

Costin


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