Re: Deployment of draft-ietf-httpbis-cice (Client-Initiated Content-Encoding)

Wenbo Zhu <wenboz@google.com> Wed, 02 November 2022 17:48 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 7C48FC1522CF for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 2 Nov 2022 10:48:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -12.562
X-Spam-Level:
X-Spam-Status: No, score=-12.562 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, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DEF_DKIM_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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dYu27v33w3qo for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 2 Nov 2022 10:48:42 -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 36612C1522CA for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 2 Nov 2022 10:48:41 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.94.2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1oqHo2-00AQZp-Vo for ietf-http-wg-dist@listhub.w3.org; Wed, 02 Nov 2022 17:45:39 +0000
Resent-Date: Wed, 02 Nov 2022 17:45:38 +0000
Resent-Message-Id: <E1oqHo2-00AQZp-Vo@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by lyra.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <wenboz@google.com>) id 1oqHo1-00AQYV-3D for ietf-http-wg@listhub.w3.org; Wed, 02 Nov 2022 17:45:37 +0000
Received: from mail-yw1-x112b.google.com ([2607:f8b0:4864:20::112b]) by mimas.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from <wenboz@google.com>) id 1oqHnz-0067yF-MU for ietf-http-wg@w3.org; Wed, 02 Nov 2022 17:45:36 +0000
Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-3691e040abaso173188417b3.9 for <ietf-http-wg@w3.org>; Wed, 02 Nov 2022 10:45:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=HlF8MzojIKU6FmVpicvY+L4FNesAtWY9xYp32uLsyCA=; b=X78eQanZbpzd8c2IcxR+VHEhWMmKEhiLIb+RuKDMfKLRkX1SVHRFmYsHCafSA3LA+c hWIqrPnK3rXGdstHnCpr4HplzFwVZg9d6HE9goyzByu/TD+kzn3gIAIB/a2lb+5zuQHo Cv4FY1hg3ielcsOgMO1V/c7+N/tmbNSOId0RBzZjxot2c6WBAtffw2qjCyrOcYV3axw0 a64h+MBQ0lg3FiDEnOCC06ydFx6v3NfHlCvb9r49nXi3N4zXMQGV74R0XY109k6c2XJF +2dnGBuh25yVp2QKf0m4DBHB17x9bVKwufgOq63w26rUqWUKOfFzhnb4XfHMvBpS9HDk n5+Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HlF8MzojIKU6FmVpicvY+L4FNesAtWY9xYp32uLsyCA=; b=kGv74hLW061kF6i94WMbN29UCI21rd34pTBvwI0l0B0souTppaq9k9DgYi/9yEh8AY kQTd5xKKFVFMEv8G5XJol9dLfNc1+O6iSs7gOXmtBdNR5h4egCv3rQK1FnQQazGNs09f TinGqovK4kA7nVvFdVRfcbhXwXxqG4T8UZwts3B9+v1nr3aBAuOPT0/LiZTSPlXsKdnw v6vRicj0kClkRU53ywn6r0P1W2JMAIIxKC42UnrmK6nSZ1wa/+0WMJbxgJpFNipVCQzp Z/8lsf4iR3+sfjzXhX62iY4oxuPXltc090XmzzUWPyv2NvEEKQSL53/IXaVsauAK3/oO McOw==
X-Gm-Message-State: ACrzQf03AOxloFF0wlRx7QArK6uB92oKl4zyyiFpYiaU4eoFXK2envSu YC0fkG19qwNBLug8cw7aILHMVzhjVNicJQ6DQUnEYiAFk14Hvg==
X-Google-Smtp-Source: AMsMyM4Q4aLEp/dMiFepS9WJOjv4wtV/W620t+s4KB5miOHoQsNZ/bsXCoQR/Ic7fIuARtChP1eD9o8T8HJCP7m9N40=
X-Received: by 2002:a81:7187:0:b0:349:29c:4265 with SMTP id m129-20020a817187000000b00349029c4265mr23743868ywc.513.1667411123480; Wed, 02 Nov 2022 10:45:23 -0700 (PDT)
MIME-Version: 1.0
References: <CAD3-0rNTsm7QmXX8HohjjBpW_MZ8wy+2-EAuYS9YKXqy1eOhNA@mail.gmail.com> <f67c02db-4d1b-a08c-e766-fead1c3c3a6f@gmx.de> <CAD3-0rNeUO2DF9Uhnj9fRCDZ2S94tiG=Mzp7WLAV14uQpp-ByQ@mail.gmail.com> <b6a8aaf8-d975-bdbb-cba5-91833111db1b@gmx.de> <CAD3-0rN1BroLfdi5Zn8MYHMEM3rGwnAu1fnN4e7vdsYqgwPTjA@mail.gmail.com> <da6889d3c610a155de6819e7e83b0f47@treenet.co.nz>
In-Reply-To: <da6889d3c610a155de6819e7e83b0f47@treenet.co.nz>
From: Wenbo Zhu <wenboz@google.com>
Date: Wed, 02 Nov 2022 10:45:11 -0700
Message-ID: <CAD3-0rMvJGoZFJ4mDNW3XpHo0Fi3CkcucZTZfyhX=QkBtWSd-g@mail.gmail.com>
To: squid3@treenet.co.nz
Cc: ietf-http-wg@w3.org
Content-Type: multipart/alternative; boundary="000000000000b5fb5f05ec806716"
Received-SPF: pass client-ip=2607:f8b0:4864:20::112b; envelope-from=wenboz@google.com; helo=mail-yw1-x112b.google.com
X-W3C-Hub-DKIM-Status: validation passed: (address=wenboz@google.com domain=google.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-20.6
X-W3C-Hub-Spam-Report: 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5, W3C_AA=-1, W3C_DB=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1oqHnz-0067yF-MU 48df32f67038a24d9cce40843aec749d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Deployment of draft-ietf-httpbis-cice (Client-Initiated Content-Encoding)
Archived-At: <https://www.w3.org/mid/CAD3-0rMvJGoZFJ4mDNW3XpHo0Fi3CkcucZTZfyhX=QkBtWSd-g@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40523
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>

On Tue, Nov 1, 2022 at 9:22 PM <squid3@treenet.co.nz> wrote:

> On 2022-11-02 14:19, Wenbo Zhu wrote:
> > No. The server has rules that decide what MIMI types are compressible.
> > It
> > is possible for a client to apply C-E against an incompressible mime
> > type
> > (as decided by the server).
>
> This is backwards. CICE is for clients to make compression decisions,
> not the server. All the server can do is inform the client which
> decoders it has implemented.
>
>
> > With 415, the server may have to honor the client's decision to
> > indicate AE
> > for the request, when the server will not compress the response of the
> > same
> > CT.
>
> That certainly sounds like a server bug to me. The server advertised
> that it can receive gzip.
> It should either employ the gzip decoder it told the client it has
> access to, or only advertise identity encoding in the first 415.
>

The question is not about responses.

There are two options for the A-E value

A-E: gzip  (when the server knows that it is wrong for the client to
compress the request C-T)
A-E: identity (when the client intends to compress the request body)

The detailed rules known to the server to decide what C-Ts are compressible
may not be known to the client (http lib).


> CICE has nothing to do with response content, nor what the server would
> do when sending any C-T.
>
>
> AYJ
>
> >
> > Thanks,
> > Wenbo
> >
> > On Thu, Oct 13, 2022 at 2:22 AM Julian Reschke <julian.reschke@gmx.de>
> > wrote:
> >
> >> Am 03.10.2022 um 20:20 schrieb Wenbo Zhu:
> >> > We ran into a corner case in responding 415 to a br-compressed request
> >> > on a server which hasn't enabled br support.
> >> >
> >> > When the client chooses to compress (br) an incompressible mime type
> (as
> >> > the server decides), the server will advise "A-E: gzip" instead of
> "A-E:
> >> > identity".
> >>
> >> But that's a server bug, no?
> >>
> >> Best regards, Julian
> >>
> >>
>
>