Re: Permissible states for extension frames #591

Greg Wilkins <gregw@intalio.com> Fri, 22 August 2014 23:58 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D02DD1A6F64 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 22 Aug 2014 16:58:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.947
X-Spam-Level:
X-Spam-Status: No, score=-6.947 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.668, 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 Pe8AjPW2HI78 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 22 Aug 2014 16:58:42 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8503F1A6F61 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 22 Aug 2014 16:58:41 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1XKyh9-0007av-Id for ietf-http-wg-dist@listhub.w3.org; Fri, 22 Aug 2014 23:56:35 +0000
Resent-Date: Fri, 22 Aug 2014 23:56:35 +0000
Resent-Message-Id: <E1XKyh9-0007av-Id@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <gregw@intalio.com>) id 1XKygt-0007aC-P2 for ietf-http-wg@listhub.w3.org; Fri, 22 Aug 2014 23:56:19 +0000
Received: from mail-we0-f178.google.com ([74.125.82.178]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <gregw@intalio.com>) id 1XKygr-0004gW-VG for ietf-http-wg@w3.org; Fri, 22 Aug 2014 23:56:19 +0000
Received: by mail-we0-f178.google.com with SMTP id w61so11096727wes.23 for <ietf-http-wg@w3.org>; Fri, 22 Aug 2014 16:55:51 -0700 (PDT)
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=BuEkZt3rVkd+WXeqnE2P45LtasR0pWTaMOTcgq3eVtQ=; b=JSn+nAGkMMeSWA1a5b4UKemPaej+Y+p/WajDCNIGNGUYL5x5OFMe2KnUDL7VWqJ53b JDY6NOyVUxhptqXGxu0Moyco5fbPyAh2rTYrIPYFAdOizQNWxBoh6lN7uPniomD9w01r DC8RGYUR1lbfXRWGPmRCjhHK+182KcYWu4PNZX7L1PAWbVRdv2EoWssd4U5FKtEnPgmY 4xKea2rPBDDkZ1KEVQi+CpsOT4i3wrljMLkHlJOZMYNWJincFC8G3KIN/+CLdk7jtq/m mX2vHqDnAKo9J894V3Sa1fvqx/WFvrCGZNK8PN70LGGQKS5nK63KkBylAJYINod20BGB 23og==
X-Gm-Message-State: ALoCoQnB/U8HWHaAvPd/L8j2QfLKqPggH7cKxgJjHYi883cZnlZYWa7EHP5HxNl6hT6CNMu661Dj
MIME-Version: 1.0
X-Received: by 10.194.174.4 with SMTP id bo4mr19641wjc.84.1408751751219; Fri, 22 Aug 2014 16:55:51 -0700 (PDT)
Received: by 10.194.169.98 with HTTP; Fri, 22 Aug 2014 16:55:51 -0700 (PDT)
In-Reply-To: <5dfde0949d4449a48cae2fff60020a12@BL2PR03MB132.namprd03.prod.outlook.com>
References: <CABkgnnVgnJSmJW2B4nJ8Vb-Nwi3EF2pra7D_m8uqZfQ8H1a2eA@mail.gmail.com> <5dfde0949d4449a48cae2fff60020a12@BL2PR03MB132.namprd03.prod.outlook.com>
Date: Sat, 23 Aug 2014 09:55:51 +1000
Message-ID: <CAH_y2NHiGGcWSza-=aFMwA+1Cp6D2A0AgOoMHioX7jmbzStorg@mail.gmail.com>
From: Greg Wilkins <gregw@intalio.com>
To: Mike Bishop <Michael.Bishop@microsoft.com>
Cc: Martin Thomson <martin.thomson@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="089e013d0c7ab56920050140939b"
Received-SPF: permerror client-ip=74.125.82.178; envelope-from=gregw@intalio.com; helo=mail-we0-f178.google.com
X-W3C-Hub-Spam-Status: No, score=-3.8
X-W3C-Hub-Spam-Report: AWL=-3.101, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7
X-W3C-Scan-Sig: lisa.w3.org 1XKygr-0004gW-VG 262b647350ebe78fafc08ae9ac353109
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Permissible states for extension frames #591
Archived-At: <http://www.w3.org/mid/CAH_y2NHiGGcWSza-=aFMwA+1Cp6D2A0AgOoMHioX7jmbzStorg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/26715
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 21 August 2014 06:44, Mike Bishop <Michael.Bishop@microsoft.com> wrote:

> We're okay with the current text.  An extension will specify in what
> states it's valid to send, so this only applies to unknown extensions on
> receive.  Those will be discarded anyway -- anything beyond that will
> complicate implementations unnecessarily.



Mike,

The problem with deferring to extensions to " specify in what states it's
valid to send", that there are some undefined states

The state machine as defined by the document assumes that the arrival of a
trailer is atomic and switches state directly to half closed or  closed.
But in reality there are extra states of quarter close, two quarter closed
and three quarter closed (see
https://github.com/http2/http2-spec/issues/484)


So if we wish to defer to extensions, then we should re-open 484 and define
all the states, otherwise it will be extremely difficult for any extension
to be correctly defined to work with closing streams.

cheers





-- 
Greg Wilkins <gregw@intalio.com>
http://eclipse.org/jetty HTTP, SPDY, Websocket server and client that scales
http://www.webtide.com  advice and support for jetty and cometd.