Re: [Masque] HTTP DATA frames for HTTP CONNECT?

Ian Swett <ianswett@google.com> Tue, 20 October 2020 22:44 UTC

Return-Path: <ianswett@google.com>
X-Original-To: quic@ietfa.amsl.com
Delivered-To: quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8058E3A0C25 for <quic@ietfa.amsl.com>; Tue, 20 Oct 2020 15:44:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.6
X-Spam-Level:
X-Spam-Status: No, score=-17.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
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 PCkERNksXpIr for <quic@ietfa.amsl.com>; Tue, 20 Oct 2020 15:44:21 -0700 (PDT)
Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 051BE3A0BB9 for <quic@ietf.org>; Tue, 20 Oct 2020 15:44:20 -0700 (PDT)
Received: by mail-yb1-xb2b.google.com with SMTP id c3so86240ybl.0 for <quic@ietf.org>; Tue, 20 Oct 2020 15:44:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PmwQhabhQ0dFPPaLe9C01cJGZ2Q93KrFs3qupsQ30oI=; b=GvJM7HEkkxrAE2wvRVzRATvmO6VxJyHfMwqVkp5yA7sZk2xNg4sHQ7BWaKvs+j5Vtp /A5lXmU7IpDVWzsSmEVHCMGUjr2jvHB16o+MKvtTNlp93BDzOL7qw2WkYuO0tVTkQoR3 VY2T/7jZlefh2fFvzaUpsYsAU5LM+fwitqdor7YQyD8lfmBVGNNdgH4etWGPHqDaZZ/5 KE+hoBHVrlbHEW93MCiYdwpyCOKfUiC7zMNh7nqee2zX7p0lXvaAg+ytDliMRtpDw7f5 Qh2+qFdhJJmuXgFoqZzY/4qYSXD41/Wpmw5nbou00DkEA81UgjBTiCKq/TROFAHus1yr QFlA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PmwQhabhQ0dFPPaLe9C01cJGZ2Q93KrFs3qupsQ30oI=; b=DkBOz3ZRMtqo7Tn/PjYlVlUOYfBMNhurd7NVDwIDPXwxBVh+gQMBuXFJs9xlmJnPmc /b9AlDqo8KpkX8Y+DLf+Cmfqy0iCLiNaBuormwfV+/a2Czw90kkH8OlhG6VokHR4pbTL 2lptVVIeLo+AN+ciLkF94f4V3r7pA4OsTmBo4Lp2BI4kPropJjJtRQpjy85SHurk07kW AmLMnI2YA3T2zQsu8Dqg22pbapRW5l61Zn/udh8ANYDOWyvD3+v1y/LGD0sLyxxT9moU WthpHIVAXqxHxiouYpElzK22sRYvXu5ASJJxWZnucwT8tTv4OupE8KFkUj6JgS3I0HWa OmnQ==
X-Gm-Message-State: AOAM530u9janZj0zpTj+ox/G+iC/F8n8RGvQKMY0SheR2lwu7kdK/lA8 Pm7uJ0UXpsdbEnx+TaRZYVIBCSRMsWdSKtlYMJ4foA==
X-Google-Smtp-Source: ABdhPJxQ8XcsXWjmT7T6qPGfF8OjxLCoHmvhP3DTD/lOWyj/YeEKd8gOdY/LRYs8P8br1CxBp9AtSKUtKpxS1M9xQKY=
X-Received: by 2002:a25:9d0a:: with SMTP id i10mr1013681ybp.388.1603233859931; Tue, 20 Oct 2020 15:44:19 -0700 (PDT)
MIME-Version: 1.0
References: <A92255DF-F477-4DE6-9AA2-33373959E792@ericsson.com> <MN2PR22MB20934245C43D7DDA5BC8F5D4DA020@MN2PR22MB2093.namprd22.prod.outlook.com> <MN2PR22MB20933D2E25F5425EA848E0D7DA020@MN2PR22MB2093.namprd22.prod.outlook.com> <CAPDSy+62-q83vK0zuPs9kQXP4Akm6KX5Khp1q4PD_2wDpacKNw@mail.gmail.com> <A50ACE49-E067-44ED-988D-B70E261482ED@ericsson.com> <CALGR9oa9_OapmpK721SQG4iOboJiTgnmNfSEO9Rwb4Mq110bNA@mail.gmail.com> <2CEC578A-32A5-45C4-B3A9-F615C9EB9DBE@ericsson.com> <CALGR9obHNAvKgTM97uhK+KAEf1ua6D3dW5x2HUOoV0QVUROY9w@mail.gmail.com> <B92228CD-6AA0-40BE-AFA3-223AD17285F2@ericsson.com> <CALGR9oZKJ7vbmZDh74k0gsX2r4nkeEE3VRrrywozT0iqQRGfGA@mail.gmail.com> <CAKcm_gNeRs9zCyEFweiwPFV_wYXf4LAjYE9q+AoGEnqnTjeq=w@mail.gmail.com>
In-Reply-To: <CAKcm_gNeRs9zCyEFweiwPFV_wYXf4LAjYE9q+AoGEnqnTjeq=w@mail.gmail.com>
From: Ian Swett <ianswett@google.com>
Date: Tue, 20 Oct 2020 18:43:59 -0400
Message-ID: <CAKcm_gPBjs1Dwx8L8=9g_gK79Ey29LX6Y-nFBYhfspP66VJ06Q@mail.gmail.com>
Subject: Re: [Masque] HTTP DATA frames for HTTP CONNECT?
To: Lucas Pardue <lucaspardue.24.7@gmail.com>
Cc: Mirja Kuehlewind <mirja.kuehlewind@ericsson.com>, David Schinazi <dschinazi.ietf@gmail.com>, QUIC WG <quic@ietf.org>, Mike Bishop <mbishop@evequefou.be>, MASQUE <masque@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000b703e805b221f8c7"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/Yal_aAgW54cXO3fS0x6td_7qyko>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic>, <mailto:quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic/>
List-Post: <mailto:quic@ietf.org>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic>, <mailto:quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 20 Oct 2020 22:44:23 -0000

Alan and Mike answered my question on a different channel, from
https://github.com/quicwg/base-drafts/blob/master/draft-ietf-quic-http.md#frame-layout

Each frame's payload MUST contain exactly the fields identified in its
description. A frame payload that contains additional bytes after the
identified fields or a frame payload that terminates before the end of the
identified fields MUST be treated as a connection error ({{errors}}) of
type H3_FRAME_ERROR.

So we just need to write up an extension draft.

On Tue, Oct 20, 2020 at 6:05 PM Ian Swett <ianswett@google.com> wrote:

> I'm coming to this conversation late in the game, but this was discussed
> fairly extensively on https://github.com/quicwg/base-drafts/issues/1885
>
> And I do believe it's an annoyance, since adding an extra layer of framing
> can greatly increase code complexity, harm performance, or both.
>
> However, now that I re-read the HTTP draft, I wonder if it's legal to send
> a DATA frame with a huge size and then let the QUIC stream close?  I
> couldn't find any text specifically describing what to do in the case where
> the DATA frame length does not match the number of bytes read prior to the
> QUIC stream being closed, but possibly I missed something.  If this is
> allowed, it seems functionally equivalent to the proposal to treat 0 length
> DATA frames as terminated when the stream is closed.
>
> Ian
>
> On Mon, Oct 19, 2020 at 7:26 AM Lucas Pardue <lucaspardue.24.7@gmail.com>
> wrote:
>
>> The library doesn't inspect request methods. Doing so for CONNECT would
>> create a disparity, which is an excellent way to create bugs.
>>
>>
>>>
>>>