Re: INVALID_STREAM and STREAM_ALREADY_CLOSED

Roberto Peon <grmocg@gmail.com> Tue, 26 March 2013 19:37 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 (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2839621F8CB6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 26 Mar 2013 12:37:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.56
X-Spam-Level:
X-Spam-Status: No, score=-10.56 tagged_above=-999 required=5 tests=[AWL=0.038, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UsQoDMC+3-Kj for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 26 Mar 2013 12:37:00 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 6AC4821F8CB1 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 26 Mar 2013 12:37:00 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UKZeQ-0006To-TH for ietf-http-wg-dist@listhub.w3.org; Tue, 26 Mar 2013 19:35:18 +0000
Resent-Date: Tue, 26 Mar 2013 19:35:18 +0000
Resent-Message-Id: <E1UKZeQ-0006To-TH@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1UKZeF-0006Sv-1N for ietf-http-wg@listhub.w3.org; Tue, 26 Mar 2013 19:35:07 +0000
Received: from mail-ob0-f177.google.com ([209.85.214.177]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1UKZeA-0001Lp-CX for ietf-http-wg@w3.org; Tue, 26 Mar 2013 19:35:06 +0000
Received: by mail-ob0-f177.google.com with SMTP id eh20so7329552obb.8 for <ietf-http-wg@w3.org>; Tue, 26 Mar 2013 12:34:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=822Fw7kXS4k5p+20A7m3jeK+4deGDBo8eX1qx4j3G18=; b=vSmtjvG9J86oWNAcNwrREMRChzbTg4zZA3d2k2gznvyyZn1XiKCYNTdp8Bkqq8Bd3+ cTcUGuhS53KYAbTwmmV+vNN/61SFcVQBIzeuPTCAdsZhHkfwLD++8s/YVCrGNsWaZj9h 1OKd/j8jt+R/XBhvBIKP1RwfJMrGrjVh4HL8z6qVqEiCR7WKWR65Krrs0YiWPf2v+/gn /nKT9ROICddl4JEd2czaxEOBZVob0DiVnmuUvVzxqQyINcAUdMUCXpAHiKa4zAWb9Na4 5RwnTwtv1DSHi5H7+lIYnsUSNo7W+kC282+5BAhzdGOPdvvRLsCDosnSk31YgjQfVYLu 5ZJw==
MIME-Version: 1.0
X-Received: by 10.60.172.237 with SMTP id bf13mr14592811oec.83.1364326475311; Tue, 26 Mar 2013 12:34:35 -0700 (PDT)
Received: by 10.76.109.72 with HTTP; Tue, 26 Mar 2013 12:34:35 -0700 (PDT)
In-Reply-To: <CABkgnnX+26FBCk0VFTEC4sPBrt4DMqWSSdFcvFRVPVYLiCOLng@mail.gmail.com>
References: <CABkgnnX+26FBCk0VFTEC4sPBrt4DMqWSSdFcvFRVPVYLiCOLng@mail.gmail.com>
Date: Tue, 26 Mar 2013 12:34:35 -0700
Message-ID: <CAP+FsNcy1KA0qs=knJzfyfcwjUbWAsWGB9zL5PjAFbrp+V5OwA@mail.gmail.com>
From: Roberto Peon <grmocg@gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="bcaec54b4aa2eb2f6b04d8d902a3"
Received-SPF: pass client-ip=209.85.214.177; envelope-from=grmocg@gmail.com; helo=mail-ob0-f177.google.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-1.721, 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
X-W3C-Scan-Sig: lisa.w3.org 1UKZeA-0001Lp-CX 7d73af0719a79e9be4bfe85c810d4b76
X-Original-To: ietf-http-wg@w3.org
Subject: Re: INVALID_STREAM and STREAM_ALREADY_CLOSED
Archived-At: <http://www.w3.org/mid/CAP+FsNcy1KA0qs=knJzfyfcwjUbWAsWGB9zL5PjAFbrp+V5OwA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17146
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>

imho: Seems reasonable for now.
I expect that we'll expand the error codes as more implementors find error
conditions that they want to be able to debug from a client debug
information, at which point we can re-add any of this.

-=R


On Tue, Mar 26, 2013 at 11:23 AM, Martin Thomson
<martin.thomson@gmail.com>wrote:

> Another error code question.
>
> INVALID_STREAM indicates that a frame arrived for an "inactive" stream.
>
> STREAM_ALREADY_CLOSED indicates that a frame arrived for a (half-)closed
> stream.
>
> Both are unexpected frames.  My first inclination was to suggest
> (again) that a single error code was appropriate.
>
> However, if I read between the lines, INVALID_STREAM is as a result of
> getting a frame prior to the first 'official' frame in the stream
> (i.e., SYN_STREAM).  But the general design doesn't require that a
> stream starts with any particular frame.
>
> So I conclude that it only makes sense to have STREAM_ALREADY_CLOSED.
>
>