Re: Design: Rename FRAME_TOO_LARGE to FRAME_SIZE_ERROR

Martin Thomson <martin.thomson@gmail.com> Wed, 19 June 2013 17:23 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 BAF5F21F9E2D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 19 Jun 2013 10:23:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, 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 wMcUQOFZqESg for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 19 Jun 2013 10:23:26 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 695D721F9E4F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 19 Jun 2013 10:23:26 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UpM6B-0005sG-TA for ietf-http-wg-dist@listhub.w3.org; Wed, 19 Jun 2013 17:23:11 +0000
Resent-Date: Wed, 19 Jun 2013 17:23:11 +0000
Resent-Message-Id: <E1UpM6B-0005sG-TA@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1UpM5x-0005qN-UP for ietf-http-wg@listhub.w3.org; Wed, 19 Jun 2013 17:22:57 +0000
Received: from mail-we0-f174.google.com ([74.125.82.174]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1UpM5w-00013N-W9 for ietf-http-wg@w3.org; Wed, 19 Jun 2013 17:22:57 +0000
Received: by mail-we0-f174.google.com with SMTP id q58so4670124wes.19 for <ietf-http-wg@w3.org>; Wed, 19 Jun 2013 10:22:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=t9u9Ktdv7NaQ0bgJ2DusEAEuJ/MUPEy55ZpzykmVBdE=; b=y9aF4mptoSQc+2WWaWM+jeZBzU2h85tNFc7RkH8uHiXmy2zwMfIxRTsRr3DOzH52OZ Wja/6Og5OztEP71K6LE0RVorVrRvv/ccM8/GTkmWm9BuRmuSCHGnz/oUCAVBpU5gJ55m zM3ZPJUojVS6OLk78gyo3vNUsxbqUmcXvWco/qfDPcdduMTz2yjnKlwJ17Qns1QLWn1L JRAF/0vaxPxvDJYFZf3zUy440G5Le0uzb55zEcESH2gVaizhfIH4HK/cSwqtMGpLEPo/ 9bP0Z0s8ykfqkoKUcPqomlI0Tanb4vJnwKtIsA+M6tjnytBLc2kd6/EZLnTnbhgjN13h KHlA==
MIME-Version: 1.0
X-Received: by 10.180.36.12 with SMTP id m12mr2882567wij.10.1371662550818; Wed, 19 Jun 2013 10:22:30 -0700 (PDT)
Received: by 10.194.60.46 with HTTP; Wed, 19 Jun 2013 10:22:30 -0700 (PDT)
In-Reply-To: <CA+pLO_j-4X+NCO7LhmPR4iuUNMRyTuq-EezEs_iPmeuJ7JakBQ@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>
Date: Wed, 19 Jun 2013 10:22:30 -0700
Message-ID: <CABkgnnXpAHVTHRALduELri5HqF77Jp6P7TGF-Uo2rhg+ysftJA@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Jeff Pinner <jpinner@twitter.com>
Cc: Roberto Peon <grmocg@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=74.125.82.174; envelope-from=martin.thomson@gmail.com; helo=mail-we0-f174.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.684, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1UpM5w-00013N-W9 91b141fb8fb777fadbc10f2946b4872f
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/CABkgnnXpAHVTHRALduELri5HqF77Jp6P7TGF-Uo2rhg+ysftJA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18284
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 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.

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