Re: [Webpush] Receipt subscription follow-up

Costin Manolache <costin@gmail.com> Wed, 27 April 2016 14:36 UTC

Return-Path: <costin@gmail.com>
X-Original-To: webpush@ietfa.amsl.com
Delivered-To: webpush@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ED01412D839 for <webpush@ietfa.amsl.com>; Wed, 27 Apr 2016 07:36:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 LJJ6eryitUS1 for <webpush@ietfa.amsl.com>; Wed, 27 Apr 2016 07:36:03 -0700 (PDT)
Received: from mail-ig0-x22f.google.com (mail-ig0-x22f.google.com [IPv6:2607:f8b0:4001:c05::22f]) (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 9624912D837 for <webpush@ietf.org>; Wed, 27 Apr 2016 07:36:03 -0700 (PDT)
Received: by mail-ig0-x22f.google.com with SMTP id bi2so129628862igb.0 for <webpush@ietf.org>; Wed, 27 Apr 2016 07:36:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vFwweMXElwvwRLcYy3Bo26VVaUyPngZG8nUUA4sRs0Y=; b=iJEwRzxYTCmmUmT74huOcTzjpkF+yKkjtq0BINnn8JsIpoRBEySqBhJ92LPjFO9P18 OGMKbAqU6xWvP7ohq3fbRvWGx+B7+QLOJLSrv2X5GkdIaBsQHjZ68sb77jtqC1zI87cg bhLZDnuYGa0kuNy7fAJy50w4zwlOx+ZV/rI6GtRwb+NW/moHhp7V3l9sa+bbCLWyCDWy 3la5tLxJyjUsOcr/smjbE1gD4uunCu0DUsX/DKlLd+xdb0m9FFfZBAkJM+QAJDPU9Drx C+Gk9PZLp47VnXO0ZQuke5rJQNHG/R65zNT/rsAp2VKHam5oHMTg/XMAqfYlhrlPRvpH 0sZQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vFwweMXElwvwRLcYy3Bo26VVaUyPngZG8nUUA4sRs0Y=; b=bvtQ8kntkAjGgGRGSboDZHoK/gLYiR1iPHEXq5D3ry8Z7mKH5bSaRTWFuX0wzgOQ3F 9A7OWNdR+bZuWHS3b2xPnY9Fg42fwCWb2U2DezbsaztIIW+PG05mzw9lFTIDokjN5rVL j6H9BQusf9UZsKx3cn7uScdtjCosbp1bEGj9aAg/qaavD3yOaf9Ms4QPlOb2Ej4izktz AdSr4ATC4eYwipUSh4wYYrF5ZWCsWrjKZMAH3re0SY4IrTfuYhNsWvxMbc/B+dYvPUV8 /WYnp0udBC5tQwAiPOHBPb4kZbfOEqKKHgRpSBAIqHFzqJ6lkVcTvTcC3/OAEeKqbxQX 65Dw==
X-Gm-Message-State: AOPr4FWv1xaFT+rUpovYsc+iRklSrGw9y+x589IKB7hS6In2Bse7Lw3A2D/BBCmNBDSAeq3ag4reWoAFfIwrQQ==
X-Received: by 10.50.55.34 with SMTP id o2mr3152343igp.18.1461767762918; Wed, 27 Apr 2016 07:36:02 -0700 (PDT)
MIME-Version: 1.0
References: <CABkgnnXKDZvLWxkhFP0R4jW=ZyFwqiqQREFA5BFKH9i4PQCmyA@mail.gmail.com> <CO2PR03MB24076724ECF95BDBB9B83E0F83640@CO2PR03MB2407.namprd03.prod.outlook.com> <CAP8-Fqk8p1HkbJkB60UoE=jeQPa9CKorgc8kqSF7sUMS3FcAfQ@mail.gmail.com> <CABkgnnU_jnSuUX7TC+qy2SwteU1tW9DEAb0uoHmhOcYNQaYuvw@mail.gmail.com>
In-Reply-To: <CABkgnnU_jnSuUX7TC+qy2SwteU1tW9DEAb0uoHmhOcYNQaYuvw@mail.gmail.com>
From: Costin Manolache <costin@gmail.com>
Date: Wed, 27 Apr 2016 14:35:53 +0000
Message-ID: <CAP8-Fqkuubb7=ndSCj2=A4-s3TAEwCp1UgELgfO-SUPf3-FpYg@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Content-Type: multipart/alternative; boundary=047d7b10c8c140c6ba053178549f
Archived-At: <http://mailarchive.ietf.org/arch/msg/webpush/tEzRGx9o3Oj3XYE5fHeY7xM-2Ng>
Cc: Brian Raymor <Brian.Raymor@microsoft.com>, "webpush@ietf.org" <webpush@ietf.org>
Subject: Re: [Webpush] Receipt subscription follow-up
X-BeenThere: webpush@ietf.org
X-Mailman-Version: 2.1.17
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, 27 Apr 2016 14:36:05 -0000

+1 on adding a DELETE.  GCM does the same in XMPP receipts, with an ack.
One problem would be that we'll have an extra RT, since delete requires a
response frame - in XMPP it's a one-way ack.

I don't know if TCP flow control and TCP acks are enough.
How does the HTTP/2 flow control window apply to push promises ?

Another option would be to just use regular http and some json or plain
text to pull batches of receipts.

Costin

On Tue, Apr 26, 2016 at 9:21 PM Martin Thomson <martin.thomson@gmail.com>
wrote:

> On 27 April 2016 at 14:12, Costin Manolache <costin@gmail.com> wrote:
> > How does the PS know that AS can accept more receipts, and how does it
> know
> > a receipt has been accepted by the AS ?
>
> There is no explicit h2-layer acknowledgment of a push.  That all
> happens implicitly with TCP acks and maybe with flow control acks.  In
> HTTP, a server usually doesn't get to learn if its response made it
> until the client acts on the response in some way.
>
> However, in this case, can we request that the application server
> DELETE (just like the client uses DELETE to acknowledge)?
>