[Webpush] Message update PR

Martin Thomson <martin.thomson@gmail.com> Thu, 12 November 2015 20:59 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 974B31A8863 for <webpush@ietfa.amsl.com>; Thu, 12 Nov 2015 12:59:38 -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 2k41OZ8CjNb1 for <webpush@ietfa.amsl.com>; Thu, 12 Nov 2015 12:59:37 -0800 (PST)
Received: from mail-ig0-x234.google.com (mail-ig0-x234.google.com [IPv6:2607:f8b0:4001:c05::234]) (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 446F61A6FDB for <webpush@ietf.org>; Thu, 12 Nov 2015 12:59:37 -0800 (PST)
Received: by igvi2 with SMTP id i2so23359156igv.0 for <webpush@ietf.org>; Thu, 12 Nov 2015 12:59:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=RWrAcJfEyZm2XMSrpNvBdWU9AsN0RbctUJegEOtbYgU=; b=QMXkh6+ldW9VUwTNWGKCjY6/MYTU89iPX9ejS4MnWKhI5Qh0N9pgPNwzGCiG1t42LB +NYsDCWHeJkJhZKRStjT3N2BtKxFDde+TbnDhuhXvPWqJyKO1sgUA8om5XYt47bggMyo tLnnLScLw0kH7x+J+d9oeT4JBG5Htz0JoaGU6iy7EBwdiaLhyX0db6/qh8itCk196yan OWDn0YlgwRsb52ApsvVBHV/1YDkLqzg4JdQYKNuK1ErVssbpX+axw1B3MiQIM2AiV+ON DCZVmmEdagb9xeWqzWq2t3jxbvJ/zhpFCnH/F7wj9DDafI1pDgEMYfTKmS+VKLHF/OAF 7tVw==
MIME-Version: 1.0
X-Received: by 10.50.30.6 with SMTP id o6mr41330987igh.94.1447361976685; Thu, 12 Nov 2015 12:59:36 -0800 (PST)
Received: by 10.36.155.139 with HTTP; Thu, 12 Nov 2015 12:59:36 -0800 (PST)
Date: Thu, 12 Nov 2015 12:59:36 -0800
Message-ID: <CABkgnnX-oO5yc58zp3CzLhsp8UQv_QW6RZw_xEPOd9nUukCoCg@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: "webpush@ietf.org" <webpush@ietf.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: <http://mailarchive.ietf.org/arch/msg/webpush/txvunSrUTzgz5ws-OLaV9Jrjb1w>
Subject: [Webpush] Message update PR
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: Thu, 12 Nov 2015 20:59:38 -0000

https://github.com/webpush-wg/webpush-protocol/pull/62

The above pull request and commit is the substance of what we
discussed in Yokohama regarding push message updates.  This proposes a
new header field, Topic, which can be added to a push message.

This doesn't really replace messages in the same way that the last one
does.  Instead, it causes the old message to be acknowledged/deleted
at the same time that the new message is created.  This avoids all the
nasty race conditions we discussed at the meeting.  If the old message
is being delivered, then this causes it to be acknowledged early;
since acknowledgment is idempotent, there are no race conditions.

--Martin