Re: SETTINGS error handling

Roberto Peon <grmocg@gmail.com> Tue, 16 July 2013 16:28 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 8924011E80E9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 16 Jul 2013 09:28:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.55
X-Spam-Level:
X-Spam-Status: No, score=-10.55 tagged_above=-999 required=5 tests=[AWL=0.048, 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 O+wjYpPNas2d for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 16 Jul 2013 09:28:13 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id BF81411E80F5 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 16 Jul 2013 09:28:13 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Uz85z-0006vH-TX for ietf-http-wg-dist@listhub.w3.org; Tue, 16 Jul 2013 16:27:23 +0000
Resent-Date: Tue, 16 Jul 2013 16:27:23 +0000
Resent-Message-Id: <E1Uz85z-0006vH-TX@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1Uz85r-0006sF-Oh for ietf-http-wg@listhub.w3.org; Tue, 16 Jul 2013 16:27:15 +0000
Received: from mail-oa0-f50.google.com ([209.85.219.50]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1Uz85q-0005YQ-K4 for ietf-http-wg@w3.org; Tue, 16 Jul 2013 16:27:15 +0000
Received: by mail-oa0-f50.google.com with SMTP id k7so1121035oag.9 for <ietf-http-wg@w3.org>; Tue, 16 Jul 2013 09:26:48 -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=WNZ1TsA7RkatIjT02L1lA+3BMLDtbMhDlfXxM5XsOEA=; b=DgTx98VC4JfaIgfu8/YXF5fClxIERoFvCsq4EwKdAhoPk6DeZFcDPWnj3jF6BQbE/k VreKsh+Kfg+qDbpN8dvSwWM5K9StocGwwwCHlh9+B/O+8nCygqedVBdB8bXk0Bh0kNIr l+wgU3j17KaGFYqgeu3fKSub4xk09nbVMXkdAQT5ar5jAKG3A8+6k6ig0TyNH6ZLSVqP PqhW4kpkSmeJ7OfA5MPjmBWa8ATSxt0ZK2/d3kWAQdFBCVuCfBMrSm82mKRQLDt1mQ89 KcyIQmnW32Lh2prtGlJqser6BhTjh/Gem2wMkUSqkfVCLyFHue3GlAO1Fb4cHJTMjsLD bbXQ==
MIME-Version: 1.0
X-Received: by 10.60.45.38 with SMTP id j6mr2882395oem.56.1373992008424; Tue, 16 Jul 2013 09:26:48 -0700 (PDT)
Received: by 10.76.91.229 with HTTP; Tue, 16 Jul 2013 09:26:48 -0700 (PDT)
Received: by 10.76.91.229 with HTTP; Tue, 16 Jul 2013 09:26:48 -0700 (PDT)
In-Reply-To: <CAPyZ6=J=jumG=+aKyjuDNiB5oVAGEJ7axjQ6-TH3+DvsQGH0NQ@mail.gmail.com>
References: <CAOdDvNoPRmM-8hpbrCoQ4GQFJTd0qPjONTyJuF6Pu2UhoyQ_zA@mail.gmail.com> <CABkgnnVretqeOtEFr=9zHbP77UtS4AyA9YfnSVXUNaz5rSytQA@mail.gmail.com> <51E53B00.1090504@treenet.co.nz> <CAPyZ6=J=jumG=+aKyjuDNiB5oVAGEJ7axjQ6-TH3+DvsQGH0NQ@mail.gmail.com>
Date: Tue, 16 Jul 2013 09:26:48 -0700
Message-ID: <CAP+FsNexmQ40N-imoNYkCSEttYsUqjLzeHr1Yvz-Brp1AfoiMw@mail.gmail.com>
From: Roberto Peon <grmocg@gmail.com>
To: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Cc: Amos Jeffries <squid3@treenet.co.nz>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="089e015367ec96250e04e1a371f3"
Received-SPF: pass client-ip=209.85.219.50; envelope-from=grmocg@gmail.com; helo=mail-oa0-f50.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.690, 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: maggie.w3.org 1Uz85q-0005YQ-K4 aa7d5aea50716a9bfe715ba92f0fdb8e
X-Original-To: ietf-http-wg@w3.org
Subject: Re: SETTINGS error handling
Archived-At: <http://www.w3.org/mid/CAP+FsNexmQ40N-imoNYkCSEttYsUqjLzeHr1Yvz-Brp1AfoiMw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18811
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>

I think that knowledge client-side of things like that is unwarranted
complexity -- the server must sanity check that data anyway to deal with
malicious clients, or, in the case of port-80 checksum "failures" which
have allowed corrupted bits through.

-=R
On Jul 16, 2013 8:35 AM, "Tatsuhiro Tsujikawa" <tatsuhiro.t@gmail.com>
wrote:

> +1 for strict validation.
>
> Regarding validation for SETTINGS, how about validating the values in
> SETTINGS frame?
>
> For example, the value in SETTINGS has unsigned 32 bit and it means
> SETTINGS_INITIAL_WINDOW_SIZE
> could have, say, 2^31, which is invalid for flow control.
> http://tools.ietf.org/html/draft-ietf-httpbis-http2-04#section-6.9.1 says
> if such value is received in
> WINDOW_UPDATE frame, it must be responded with FLOW_CONTROL_ERROR.
> But it does not say about SETTINGS frame for invalid window size (it may
> infer that but still).
> I think it would be good to add some error handling of values on SETTINGS
> frame reception.
>
> Best regards,
>
> Tatsuhiro Tsujikawa
>
>
> On Tue, Jul 16, 2013 at 9:22 PM, Amos Jeffries <squid3@treenet.co.nz>wrote:
>
>> On 16/07/2013 10:20 a.m., Martin Thomson wrote:
>>
>>> On 15 July 2013 12:44, Patrick McManus <pmcmanus@mozilla.com> wrote:
>>>
>>>> I'm wondering why the text proscribes error handling of MUST ignore in
>>>> response to violation of the MUST NOT send provision.
>>>>
>>> I think that someone either caught Postel's DIsease, or is in remission.
>>>
>>>  Can we either change it to PROTOCOL ERROR (preferred) or just be silent
>>>> on
>>>> handling of the error?
>>>>
>>> PROTOCOL_ERROR seems appropriate.
>>>
>>> Opened:
>>> https://github.com/http2/**http2-spec/issues/174<https://github.com/http2/http2-spec/issues/174>
>>>
>>
>> +1. And double that for more strictness everywhere.
>>
>>
>> Amos
>>
>>
>