Re: [Technical Errata Reported] RFC7230 (4412)

Mark Nottingham <mnot@mnot.net> Wed, 15 July 2015 12:17 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 574C61A8A60 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 15 Jul 2015 05:17:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.912
X-Spam-Level:
X-Spam-Status: No, score=-6.912 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A60MnyuxKSmN for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 15 Jul 2015 05:17:31 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 26D391A8A5F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 15 Jul 2015 05:17:30 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1ZFLZq-0004f2-Hv for ietf-http-wg-dist@listhub.w3.org; Wed, 15 Jul 2015 12:14:18 +0000
Resent-Date: Wed, 15 Jul 2015 12:14:18 +0000
Resent-Message-Id: <E1ZFLZq-0004f2-Hv@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <mnot@mnot.net>) id 1ZFLZm-0004dg-9y for ietf-http-wg@listhub.w3.org; Wed, 15 Jul 2015 12:14:14 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by maggie.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from <mnot@mnot.net>) id 1ZFLZj-0007PS-Tw for ietf-http-wg@w3.org; Wed, 15 Jul 2015 12:14:13 +0000
Received: from [10.43.1.127] (unknown [213.221.117.233]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id F258622E1F4; Wed, 15 Jul 2015 08:13:25 -0400 (EDT)
Content-Type: text/plain; charset="windows-1252"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <559F8D2E.2060808@treenet.co.nz>
Date: Wed, 15 Jul 2015 14:13:04 +0200
Cc: ietf-http-wg@w3.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <A02BB1A8-BFB6-4B4E-8F84-4CEB319A1CC9@mnot.net>
References: <20150709104401.63318180092@rfc-editor.org> <CACuKZqFm6uxMT_yOKYR6bqB8D4CzUoexr=5xFeiuAGA+fhx+iQ@mail.gmail.com> <20150709150804.GG26380@1wt.eu> <CACuKZqFVfNLcg_CPx6vpigXi=nvBMDcy1dpb6+CgjePU9=iVDw@mail.gmail.com> <20150709204331.GJ26380@1wt.eu> <CACuKZqEiB1cRCoQVSqLSoZE1+Kv3DiuUbiY8kUy5OqwiRWOoYw@mail.gmail.com> <20150709212935.GK26380@1wt.eu> <559F8D2E.2060808@treenet.co.nz>
To: Amos Jeffries <squid3@treenet.co.nz>
X-Mailer: Apple Mail (2.2102)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-9.6
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1ZFLZj-0007PS-Tw 30d2efabd139f912c3aa175294ddf66c
X-Original-To: ietf-http-wg@w3.org
Subject: Re: [Technical Errata Reported] RFC7230 (4412)
Archived-At: <http://www.w3.org/mid/A02BB1A8-BFB6-4B4E-8F84-4CEB319A1CC9@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/29959
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'm reluctant to open the door for wordsmithing the specs for readability in errata; everyone tends to have an opinion, and few actually read the errata, which leads me to believe it's not a good use of WG time.

That said, if you want to make a concrete suggestion, go ahead (before and after).

Cheers,


> On 10 Jul 2015, at 11:15 am, Amos Jeffries <squid3@treenet.co.nz> wrote:
> 
> CC'ing Mark to make sure this is on his radar.
> 
> 
> This same text seems to keep coming up as errata (this is the third time
> IIRC) and as below it can even catch some of us WG regulars who know
> what its about.
> 
> To me it seem that the core issue is the words 'request' and 'response'
> being semi-hidden in the long descriptive text.
> 
> I wonder if it is worth putting in an eratta to have the paragraph split
> into two simpler paragraphs starting with words like "For requests ..."
> and "For responses ..." ?
> 
> This is after all two different sets of handling criteria for different
> message types. It makes a fair bit of sense to have them in different
> clauses as the rest of the documents text generally does for similar things.
> 
> Amos
> 
> On 10/07/2015 9:29 a.m., Willy Tarreau wrote:
>> On Thu, Jul 09, 2015 at 04:11:10PM -0500, Zhong Yu wrote:
>>> On Thu, Jul 9, 2015 at 3:43 PM, Willy Tarreau <w@1wt.eu> wrote:
>>> 
>>>> On Thu, Jul 09, 2015 at 01:33:46PM -0500, Zhong Yu wrote:
>>>>> The spec does allow a response like
>>>>> 
>>>>> HTTP/1.1 200 OK
>>>>> Content-Type: text/plain
>>>>> Transfer-Encoding: gzip
>>>>> Connection: close
>>>> 
>>>> No it does not allow it as chunked is not last. It's in 3.3.1 :
>>>> 
>>>>   If any transfer coding
>>>>   other than chunked is applied to a request payload body, the sender
>>>>   MUST apply chunked as the final transfer coding to ensure that the
>>>>   message is properly framed.
>>>> 
>>> 
>>> This text talk about "REQUEST" only :) The next sentence talks about
>>> "RESPONSE" -
>> 
>> Hmm yes, good catch, sorry!
>> 
>>>> If any transfer coding other than chunked is applied to a response
>>> payload body, the sender MUST either apply chunked as the final transfer
>>> coding or terminate the message by closing the connection.
>>> 
>>> 
>>> Apparently, the text is prune to misreading.
>> 
>> Indeed, I didn't pay attention, I tend to consider that the rule
>> applies to both directions, though the strict control in haproxy
>> clearly is only for the request, just as specified.
>> 
>> So yes, the spec allows it and also specifies how to process it.
>> I doubt any server find it fun to play this game given that we
>> all know that connection-delimited bodies are prone to silent
>> truncation, but that doesn't mean no server does it.
>> 
>> Regards,
>> Willy
>> 
>> 
> 

--
Mark Nottingham   https://www.mnot.net/