Re: Design: Rename FRAME_TOO_LARGE to FRAME_SIZE_ERROR

William Chan (陈智昌) <willchan@chromium.org> Wed, 19 June 2013 17:30 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 14D4421F9E76 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 19 Jun 2013 10:30:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.676
X-Spam-Level:
X-Spam-Status: No, score=-9.676 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3, 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 zjy1Yl2LeWVB for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 19 Jun 2013 10:30:13 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id DC2C321F9E2D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 19 Jun 2013 10:30:12 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UpMCH-0008AM-2j for ietf-http-wg-dist@listhub.w3.org; Wed, 19 Jun 2013 17:29:29 +0000
Resent-Date: Wed, 19 Jun 2013 17:29:29 +0000
Resent-Message-Id: <E1UpMCH-0008AM-2j@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <willchan@google.com>) id 1UpMC3-000864-Nt for ietf-http-wg@listhub.w3.org; Wed, 19 Jun 2013 17:29:15 +0000
Received: from mail-pa0-f54.google.com ([209.85.220.54]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <willchan@google.com>) id 1UpMC2-0006Dy-QW for ietf-http-wg@w3.org; Wed, 19 Jun 2013 17:29:15 +0000
Received: by mail-pa0-f54.google.com with SMTP id kx10so5390667pab.13 for <ietf-http-wg@w3.org>; Wed, 19 Jun 2013 10:28:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=DXgYzNjSDELFhbwIG4n4Kvx0vVti8Q0Z9PoMULcdS7k=; b=Var15HHFcuwMcHHn6j5kV0dd+9mPgKWxFxCmY3f07+ib/qnY0uOTFVbHi0OQUb4FNC Zm2ali7M6OeDu0kZ0xH0tJ102YCGsVJ8glbemP4+aoK8E3qkfTj1YRdqHz0xDGfuQPa6 BoydwbwIi1001F+nYGgcaBl9JV9x021u5+BPjaHDeprD4N399goeLJR63kYGypvarcN7 NrEc7mzfDnvgMQnQRebKBSt1EE/n0CGRTtBBACqIz7blekZVp5YGKATF2mL4W1wgp0T0 yWvjdO8u9gEmavoDwxkCT54u0v0KQjt29bJctIyxHo5bxjll3l8Z1VwMr6HNyO2bvmrG RCLg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=DXgYzNjSDELFhbwIG4n4Kvx0vVti8Q0Z9PoMULcdS7k=; b=EiEhFL7gW2BLpP6LMEywMoJ9T/lPLH1+wn+GuLmgjiYyZ3MlUVD0DDaxRXyNYBH1Ko NpxNG+28EctJr6vaaCB/qtq7wgdYQ/GYRSlK9hKlDQNOCq+xyjcDZiMUakEwm/ogu9lJ 9hRWEhxa564NdCzAZUufquqB2WqGKbS01ULjo=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=DXgYzNjSDELFhbwIG4n4Kvx0vVti8Q0Z9PoMULcdS7k=; b=LFlI84OEPeCnrenkXnMYkc54Sl0MsJUGzutlC/mZgxO+r27yIuLDKoWlnsopoH5bnI TgSdKnRFieNIzW6tYgWE+f1EQtopR8r5E42WGJP0q4B5fDdUWKAO480JzjbpOer2M7j6 Pz0kmwl8Lp2XtNFPMIwOrVHe2o1z4KQ5Hh4VN3sCS0PuTSc6jqU9vjr89/za670gjX+1 Y5hTS6tPdgpYEp7DoYuyMJ8sxkQJru+RLRJfHoTegaoiEKAy+UjjjlmGXGGPbmohtSeM SizfoCf3+2XAk4ZYFQF+aQQeDBi/hz8x72cmjwgWTVR17TG8O5MoqZTUNIsY9RqvCdwp xZiw==
MIME-Version: 1.0
X-Received: by 10.66.165.97 with SMTP id yx1mr7629161pab.82.1371662928553; Wed, 19 Jun 2013 10:28:48 -0700 (PDT)
Sender: willchan@google.com
Received: by 10.68.21.135 with HTTP; Wed, 19 Jun 2013 10:28:48 -0700 (PDT)
In-Reply-To: <CABkgnnXpAHVTHRALduELri5HqF77Jp6P7TGF-Uo2rhg+ysftJA@mail.gmail.com>
References: <CABP7Rbe9GEkRvoU6yYpiNjrShc32PeoB64fNaTrP6M4Uco-xRw@mail.gmail.com> <CAOdDvNr_a3y7Aq8=Q77JYx=iJGwaK==wQWj5JVi9mMdqG5KJug@mail.gmail.com> <alpine.LRH.2.01.1306190738140.31315@egate.xpasc.com> <CA+pLO_jVAdz3XNsfUSW4L0a_dB4YSnaNA+G8QA9h0rS=b74s5w@mail.gmail.com> <CAP+FsNf7mZC3KMD5qYAPA8rAE+Q6fYM_xAEUtxEZQ0jSLGtAMw@mail.gmail.com> <CA+pLO_j-4X+NCO7LhmPR4iuUNMRyTuq-EezEs_iPmeuJ7JakBQ@mail.gmail.com> <CABkgnnXpAHVTHRALduELri5HqF77Jp6P7TGF-Uo2rhg+ysftJA@mail.gmail.com>
Date: Wed, 19 Jun 2013 10:28:48 -0700
X-Google-Sender-Auth: WQdL3zVrtm14B7W5DcC_IgBvKMI
Message-ID: <CAA4WUYgKJwhQGsyUyJzcaqy4C-iETsvqb9yPNax5JSixCNCu=A@mail.gmail.com>
From: "William Chan (陈智昌)" <willchan@chromium.org>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Jeff Pinner <jpinner@twitter.com>, Roberto Peon <grmocg@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="047d7b86c5289bce0504df8529ab"
X-Gm-Message-State: ALoCoQkiFdWNXHdKgYWElpTfMRise9J9tR+HVoX8UiiA2dmEuXnPW21oAbdRjhSiN7mV4Nm50dE4CQoCaKn4wpcZDxLyNmPc7WoIf6JMQvYymzcwgfGJSwE8/QocLRVfqbsqnXC7H8eeq1pIn/EgbzuJwRKEC+kLomYpXzktD6AqhH2tdx//aAwzr1JWPPkgVYp1T4TXN1GT
Received-SPF: pass client-ip=209.85.220.54; envelope-from=willchan@google.com; helo=mail-pa0-f54.google.com
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=-2.099, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-1.276, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1UpMC2-0006Dy-QW 3c3a3fb6701dbe9567c00235643e0bee
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Design: Rename FRAME_TOO_LARGE to FRAME_SIZE_ERROR
Archived-At: <http://www.w3.org/mid/CAA4WUYgKJwhQGsyUyJzcaqy4C-iETsvqb9yPNax5JSixCNCu=A@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18285
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 Wed, Jun 19, 2013 at 10:22 AM, Martin Thomson
<martin.thomson@gmail.com>wrote:

> On 19 June 2013 09:32, Jeff Pinner <jpinner@twitter.com> wrote:
> > 1 byte per data frame is completely legal at both the framing layer and
> the
> > application layer. I believe the only illustrating examples here are
> > something like sending a 7 byte PING frame or a 3 byte WINDOW_UPDATE
> frame.
> > You have received the entire frame, it is just malformed.
>
> So, I have a question:  is there an actionable difference between
> FRAME_SIZE_ERROR and PROTOCOL_ERROR.  Noting that neither RST_STREAM,
> nor GOAWAY, have a way to indicate which frame was in error, there
> isn't much that is actionable in either case.  I believe that the
> action in both cases is the same: go and debug your stack.
>

Actionable difference: it tells you what part of your stack to debug.
PROTOCOL_ERROR is terrible :( Everytime we generate a PROTOCOL_ERROR, we
have felt we wanted to add a debug string (that opaque byte sequence we
discussed earlier) so we could figure out what was wrong.


>
> That leads me to conclude that this is error code proliferation for no
> good reason.
>
>