Re: Ambiguity on HTTP/3 HEADERS and QUIC STREAM FIN requirement

Lucas Pardue <lucaspardue.24.7@gmail.com> Fri, 17 June 2022 10:44 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 (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4F0B6C15AAEF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 17 Jun 2022 03:44:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.759
X-Spam-Level:
X-Spam-Status: No, score=-2.759 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7PuWj1xzwDuW for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 17 Jun 2022 03:44:40 -0700 (PDT)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D7D0FC15AAEE for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 17 Jun 2022 03:44:39 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1o29QW-0006PY-HK for ietf-http-wg-dist@listhub.w3.org; Fri, 17 Jun 2022 10:42:08 +0000
Resent-Date: Fri, 17 Jun 2022 10:42:08 +0000
Resent-Message-Id: <E1o29QW-0006PY-HK@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <lucaspardue.24.7@gmail.com>) id 1o29QU-0006Of-SM for ietf-http-wg@listhub.w3.org; Fri, 17 Jun 2022 10:42:06 +0000
Received: from mail-qv1-xf36.google.com ([2607:f8b0:4864:20::f36]) by mimas.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <lucaspardue.24.7@gmail.com>) id 1o29QT-0005Oy-O7 for ietf-http-wg@w3.org; Fri, 17 Jun 2022 10:42:06 +0000
Received: by mail-qv1-xf36.google.com with SMTP id q104so5812063qvq.8 for <ietf-http-wg@w3.org>; Fri, 17 Jun 2022 03:42:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wvPxlcO93p8h6M2S0sQGylEEoS1BOtEiOpmdIjnUS/Q=; b=jcUGkG0KErE5XgbkUs2+DPwc44cBziSymbdfnd4xq9hcK5ykyvAQOe83OFO8YdEn0x 0cHt/0tx32IgkUuucCMF8r39gUiBFskioNRFJOb43QAgCy1QG5Rs/jNcqaeuZad0ay/T A7pgDZ9ji0xZFUy2AV710jg0uIvBjE2zKqHzf5Afdqf0qUdaFP1k4KEuu2fx0n9L/Ud1 n8Z0Qq7xiFmPox0ZIkRITTRMSEiI6OOVYhHFK73bfcz6jCCVacXJjCgeF8TQ2A0yfibd CQ273O8jiQLokqcGpY3Nrtfz7pmT/D45IbfcuCnAFTGUnH0JxW66dkwd6BuBL7cGl9Hx CiWQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wvPxlcO93p8h6M2S0sQGylEEoS1BOtEiOpmdIjnUS/Q=; b=d5OEaewTuIBSq/JZVGFaJvHmEeSWX8BBHo/8+waBQVTYk57Re/0HCB0ZG6+4eSriMQ Al8IWhlyW30HjM9mOlnutzrOxOuD/1fITvcbnpxntLuPOZpu+LqjUFI9OaW0Ik05N9hI MU5ZZx/p4vYoQU8rVKkVueP3QSYYOLgew8qcNepvWhymEB4nKKW4n5m09s/PvT696p83 DK9pKBn7PrLhjoXpxahJETA+WjuqBmEXEC+u50+aVQva52u9jgGkUU3KdWGOeX65funS M7H5BUQZl6vXBsH5y/YtGOVobBwQf9flDG+8GKH/ElOR1gbZvJawLNY4huWHR5KnhCkP oXnA==
X-Gm-Message-State: AJIora8f+8Mw9e9bjivPswG+eN9Hc+Wn8iOPZdRzzMBGReWnhEsugIB4 wiUt68VonJYEfo3P53G7v/9pSYN1UODdNSTqM2TZXC0z
X-Google-Smtp-Source: AGRyM1v4J9AQNg9xBjnZlAueoYE6otkfUELehQAV1j9YoqDv7jy6hArYIh5Fn11iEmj/6HfLrC5zvSlbiehBKSTFjww=
X-Received: by 2002:ac8:5bd4:0:b0:305:1f75:eca with SMTP id b20-20020ac85bd4000000b003051f750ecamr7617616qtb.23.1655462514723; Fri, 17 Jun 2022 03:41:54 -0700 (PDT)
MIME-Version: 1.0
References: <YqsBZ0M4lDXGRQTo@miskatonic> <CAJ_4DfRD9ktc1cmDd8GmQDx8iX6s=NYj3C9MW-3-yU+SZYxkEQ@mail.gmail.com> <CALGR9obvYB-2vYXYgwSMpS3s8uSbLKn0ZF39piYQ_ROt8DAXJg@mail.gmail.com> <CAPDSy+5-+L_F8gOYht2OWmWHnp4JtWt4tfPbM_TN799AgK7H1A@mail.gmail.com> <71b309c9-0220-4e14-8be5-13f2cb1d1278@beta.fastmail.com> <20220617045330.GB30314@1wt.eu> <d2a71dca-1c0d-416e-8f94-700114266aaf@beta.fastmail.com> <20220617053700.GD30314@1wt.eu> <b5e21b22-e447-4ba1-b907-e2785deb2d5d@beta.fastmail.com> <20220617101722.GA30560@1wt.eu>
In-Reply-To: <20220617101722.GA30560@1wt.eu>
From: Lucas Pardue <lucaspardue.24.7@gmail.com>
Date: Fri, 17 Jun 2022 11:41:43 +0100
Message-ID: <CALGR9oba=7Ajf2p+hf+yNVGiaQ1=Vwarq5iPxCmUxLMT_7m0AQ@mail.gmail.com>
To: Willy Tarreau <w@1wt.eu>
Cc: Martin Thomson <mt@lowentropy.net>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="00000000000021111c05e1a2679d"
Received-SPF: pass client-ip=2607:f8b0:4864:20::f36; envelope-from=lucaspardue.24.7@gmail.com; helo=mail-qv1-xf36.google.com
X-W3C-Hub-DKIM-Status: validation passed: (address=lucaspardue.24.7@gmail.com domain=gmail.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-4.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1o29QT-0005Oy-O7 af7d13806a1eae49a7c54abc2b5547a5
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Ambiguity on HTTP/3 HEADERS and QUIC STREAM FIN requirement
Archived-At: <https://www.w3.org/mid/CALGR9oba=7Ajf2p+hf+yNVGiaQ1=Vwarq5iPxCmUxLMT_7m0AQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40153
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: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Some very interesting points here, can't respond to all of them due to time
constraints.

On Fri, Jun 17, 2022 at 11:20 AM Willy Tarreau <w@1wt.eu> wrote:

>
> But given that we're still in the early days of such implementations, I'd
> rather see the pieces arrange correctly so that everything works as
> smoothly
> as it can. That's why if there's no strong objection against this, I'd file
> an errata to at least mention the issue and how to best deal with it from
> both sides, so that newcomers have a chance to notice it before they're
> engaged too deeply with their code.
>

The discussion illustrates there are several considerations around the
handling of translation between versions. Perhaps a lengthier piece of text
in an I-D that treats them all might be worth a consideration.

Which leads me to a wild thought*. One could attempt to solve this problem
in the HTTP framing layer, by introducing, via extension, a new
pseudo-header ":no-content", which modifies the message exchange sequence
in H2 and H3 such that no DATA frames are allowed after the first flight of
header section. That solves the disjoin between the headers section and the
ES flag or FIN bit. And would allow the receiving peer to make more
concrete choices about whether to process a request early or wait a bit.

Cheers
Lucas

* It's Friday, so it's the day of the week I'm allowed to have these :-P