Re: [Webpush] Require the TTL header
Benjamin Bangert <bbangert@mozilla.com> Sat, 06 February 2016 21:40 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 E62471B33FC
for <webpush@ietfa.amsl.com>; Sat, 6 Feb 2016 13:40:24 -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 ImFH4LY7BdKV for <webpush@ietfa.amsl.com>;
Sat, 6 Feb 2016 13:40:22 -0800 (PST)
Received: from mail-yk0-x233.google.com (mail-yk0-x233.google.com
[IPv6:2607:f8b0:4002:c07::233])
(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 CAAFA1B33FB
for <webpush@ietf.org>; Sat, 6 Feb 2016 13:40:21 -0800 (PST)
Received: by mail-yk0-x233.google.com with SMTP id u9so74005891ykd.1
for <webpush@ietf.org>; Sat, 06 Feb 2016 13:40:21 -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=NeeY3pFoyAxrxkxOf8twd75quUR1SDUoswhfcg5i3c0=;
b=jY8RRlcRyX3td6YNLmIvx7HsCTD75QvnroFAXrPY22dWuxu4pXPkK7SGQtAfwUnrWk
oz+mJW+zhIU97X7D7K1/1YzFyPPvytd0lMuLRMi59tuddNyP1fZZlCMkDTWZGeDDLQMY
r+9Gjcqf0F7uqhrxuTzWt2jyioXVQPT2CARIG1ESP8j6pjixryco0AIEFA08hs5JX0kd
7etRmz8ZKC2x0mzOmV1AxrKZ+XXcx16BpLxL3F67/5XaHKVsB4rIgERsX6pZKbSkvkGn
wHCOt6dajPSc7rAGVbKDZpM1s5xsawB6AYErEoS1i6yQerLIKDc4+3Cbyg9MNqCVxJMX
7aCg==
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=NeeY3pFoyAxrxkxOf8twd75quUR1SDUoswhfcg5i3c0=;
b=Bs92tX6OiL/lgdyI3d/+rtx6RkrwpbaIPrwM5/7nEVj1j6d4pAC1nxAH25qR3BjIBL
TDZU74bfFPtSpaluYSgDU2AP5AWetaJ+ubKiT74NKMIhNwuxr+YgI5QS8FLzpF0nd7WI
FJ7XmlYP6tsdO/8Nvomh/986KDYyDdjzm4YUC/E4Cet512T+U/V2MQ5i/QejqBzVLMpA
k4HE8U1EW7uZPI6tFNZMjGgoQqoqOB4WnBb2xRL84TRfOKHZ0ApFHT03c062+NvNpWbd
cUCJDYtXtDZvJ8V866TSTHnMIvZey3h1tPyS+FjjJjdcdwrQlk3Q/ai/eHnWluhruMqT
UyKA==
X-Gm-Message-State: AG10YOR1be4m2DDlzSY1wHs08+j9XYc4dQW0dOYvcL/HBQwb5GeJyFCEOBdeG1YCsLBDj7Ot0iS1P7cnKIKU9kwJ
MIME-Version: 1.0
X-Received: by 10.37.95.84 with SMTP id t81mr11034681ybb.58.1454794820891;
Sat, 06 Feb 2016 13:40:20 -0800 (PST)
Received: by 10.37.196.68 with HTTP; Sat, 6 Feb 2016 13:40:20 -0800 (PST)
In-Reply-To: <CAP8-FqnzSukVkkiBv8F19NH-uTdtRM2rXuQyA1Ng52c4KczDTg@mail.gmail.com>
References: <CABp8Eu+oBj8XKWbqd9ypT_mQWzMxXDe+cBR_vqk=rJ=6tM3tFA@mail.gmail.com>
<BY2PR0301MB06477C93FA8937F0ABD4393383D20@BY2PR0301MB0647.namprd03.prod.outlook.com>
<CABp8EuJFn+e8ParLY5+SLRVA-_8XgFgp5k8a2W2Ejir35hucxA@mail.gmail.com>
<BY2PR0301MB064705934B6DE1B371E1301D83D20@BY2PR0301MB0647.namprd03.prod.outlook.com>
<CABp8EuJQ_KXSs6Zz-fbhPcrnYymk14tShu4ukATX9GJ9J3PMjQ@mail.gmail.com>
<CAP8-FqnzSukVkkiBv8F19NH-uTdtRM2rXuQyA1Ng52c4KczDTg@mail.gmail.com>
Date: Sat, 6 Feb 2016 13:40:20 -0800
Message-ID: <CABp8EuLkh9VyE2+Bj8Lhi_FvXxX45hT-Tjfd4GewpVqQZ+bW7Q@mail.gmail.com>
From: Benjamin Bangert <bbangert@mozilla.com>
To: Costin Manolache <costin@gmail.com>
Content-Type: multipart/alternative; boundary=001a114275948573e7052b20d0ed
Archived-At: <http://mailarchive.ietf.org/arch/msg/webpush/gGZgoWFb6Q3Nw84RKPjM9R7YiDo>
Cc: Brian Raymor <Brian.Raymor@microsoft.com>,
"Martin Thomson \(martin.thomson@gmail.com\)" <martin.thomson@gmail.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: Sat, 06 Feb 2016 21:40:25 -0000
On Sat, Feb 6, 2016 at 12:47 PM, Costin Manolache <costin@gmail.com> wrote: > +1 on requiring ttl, and returning a Location even for TTL=0 > I realized on more careful reading that to return a 201, a Location must accompany it, so our implementation was wrong in this regard. However receipt behavior is a bit tricky. The service may 'delete > immediately' ( which is the same with > not storing it in the first place ), but the delivery receipts should > still be returned when the device > acks. > > The push service may believe the device is connected, and call send - but > in many cases send > will succeed even if the other end is gone - TCP will do its retry and > eventually will timeout and > close the connection, but it takes some time and it's well after send. > > I assume 202 (Accepted) would be better for TTL=0 if the service is not > actually storing the message. > I'd be in favor of that, not sure if there's any relevant privacy implications from immediately indicating that a user is offline. And as you note, it still leaves open the possibility of returning a 201 with the belief the client is connected before it times out on the TCP retries. So all the 202 indicates in this regard is that the client is definitely not connected, nor has been recently enough for a stale connection to be present. > GCM ( and I assume other services ) may also optimize small TTLs by not > persisting - so > it may make sense to indicate this with 202, and not require in the spec > that the service is persisting > all messages. > Yep, we don't store TTL=0 messages at all. > Finally, it is very impractical for us to determine if the user agent is > available at the time of the send > (replication and cross-DC latency, plus the TCP retries) > > Costin > Cheers, Ben
- 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