Re: SETTINGS error handling
Roberto Peon <grmocg@gmail.com> Tue, 16 July 2013 16:32 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 10BB221F867B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 16 Jul 2013 09:32:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.551
X-Spam-Level:
X-Spam-Status: No, score=-10.551 tagged_above=-999 required=5 tests=[AWL=0.047, 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 ZShhmSar+KzN for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 16 Jul 2013 09:32:30 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 3916221F842A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 16 Jul 2013 09:32:29 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Uz8AO-0002Q9-Fa for ietf-http-wg-dist@listhub.w3.org; Tue, 16 Jul 2013 16:31:56 +0000
Resent-Date: Tue, 16 Jul 2013 16:31:56 +0000
Resent-Message-Id: <E1Uz8AO-0002Q9-Fa@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 1Uz8AF-0002PP-O3 for ietf-http-wg@listhub.w3.org; Tue, 16 Jul 2013 16:31:47 +0000
Received: from mail-oa0-f50.google.com ([209.85.219.50]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1Uz8AE-0003Ro-Jo for ietf-http-wg@w3.org; Tue, 16 Jul 2013 16:31:47 +0000
Received: by mail-oa0-f50.google.com with SMTP id k7so1109864oag.23 for <ietf-http-wg@w3.org>; Tue, 16 Jul 2013 09:31:20 -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=osEEDaKmCl3rH0D/AZgZVng6gVpSLlt4JUyi0XfSMms=; b=hsKOA4z1ih677Wv3IH8cETlkwCibUOYUy+IZfpO9OX60Rjij6Q5lBPY3y9x68tcHl2 BjhPuT2HWql2y7+imQYa/hJwS0ESeJ8mXKEhAoIOFFdl4L/f6GCYiWhoUhnUY1hG/tfL U4D+pnSKsm2alwx8povfGD2FOFai6X0Oyv/zo5r94bOYSuBE3B17KWohjvCn3FkoKLoV SPFTvBEH9AUU8noAqXLpeZSGtYEdtk/PRxJovth4R2InJdpbU61V4Yf27hEH6NOqJLk8 RFOorbLA1s80HwvKMsPyFk6PjKftaMw1N7mPyznfT+C0E2L9XZ/xxFlVxQ7p/1Rn9lzY Hh2w==
MIME-Version: 1.0
X-Received: by 10.60.141.226 with SMTP id rr2mr3030046oeb.12.1373992280774; Tue, 16 Jul 2013 09:31:20 -0700 (PDT)
Received: by 10.76.91.229 with HTTP; Tue, 16 Jul 2013 09:31:20 -0700 (PDT)
Received: by 10.76.91.229 with HTTP; Tue, 16 Jul 2013 09:31:20 -0700 (PDT)
In-Reply-To: <CAP+FsNexmQ40N-imoNYkCSEttYsUqjLzeHr1Yvz-Brp1AfoiMw@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> <CAP+FsNexmQ40N-imoNYkCSEttYsUqjLzeHr1Yvz-Brp1AfoiMw@mail.gmail.com>
Date: Tue, 16 Jul 2013 09:31:20 -0700
Message-ID: <CAP+FsNeK4cFuEVhty2oOW+jp-xi4y3tn31n7Q+5FCs_Dn86Oiw@mail.gmail.com>
From: Roberto Peon <grmocg@gmail.com>
To: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Cc: HTTP Working Group <ietf-http-wg@w3.org>, Amos Jeffries <squid3@treenet.co.nz>
Content-Type: multipart/alternative; boundary="047d7b41c746d1df6404e1a38141"
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: lisa.w3.org 1Uz8AE-0003Ro-Jo b4abd1648a676520c71e2e53f74cb6a5
X-Original-To: ietf-http-wg@w3.org
Subject: Re: SETTINGS error handling
Archived-At: <http://www.w3.org/mid/CAP+FsNeK4cFuEVhty2oOW+jp-xi4y3tn31n7Q+5FCs_Dn86Oiw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18813
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>
Clarification: If you were meaning to say that the server/client should close the connection, etc. upon receipt of bad settings, then I wholly agree. The client shouldn't bother to validate data that it won't interpret, however, which is what I was saying very poorly in the last email. -=R On Jul 16, 2013 9:26 AM, "Roberto Peon" <grmocg@gmail.com> wrote: > 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 >>> >>> >>
- SETTINGS error handling Patrick McManus
- Re: SETTINGS error handling Martin Thomson
- Re: SETTINGS error handling Amos Jeffries
- Re: SETTINGS error handling Tatsuhiro Tsujikawa
- Re: SETTINGS error handling Roberto Peon
- Re: SETTINGS error handling Roberto Peon
- Re: SETTINGS error handling Tatsuhiro Tsujikawa