Re: [hybi] permessage-deflate parameter negotiation
Takeshi Yoshino <tyoshino@google.com> Thu, 13 June 2013 15:31 UTC
Return-Path: <tyoshino@google.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 95E4B21F8AE8 for <hybi@ietfa.amsl.com>; Thu, 13 Jun 2013 08:31:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, NO_RELAYS=-0.001]
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 khVB+qqpznZS for <hybi@ietfa.amsl.com>; Thu, 13 Jun 2013 08:31:24 -0700 (PDT)
Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) by ietfa.amsl.com (Postfix) with ESMTP id 9C83521F86D5 for <hybi@ietf.org>; Thu, 13 Jun 2013 08:31:23 -0700 (PDT)
Received: by mail-wi0-f169.google.com with SMTP id c10so1056463wiw.4 for <hybi@ietf.org>; Thu, 13 Jun 2013 08:31:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=rFtz4A2JiQc9Zqd0RG5d1POBuUhaLME3bjMl2icwfg0=; b=hyVqToM4nDvNjzCbF+I6eOcz8jXVR/O66aeR7qpZTq3vzADJpIccFP3YPTNks8OpGR 9VMYIziQ1Mln2d9Xj82+8vKjVO8qA/vlTI/UX6DNKUnULB7dXbEdaFtvOeYgVAHtp2sl /ZhH3oQeYQtiITra1hp0msffGkXiHOWDriF2jI5ytvzyS6wvvXrAuy1fJkn1bw5wj+20 nlxpjF1/TO2LoQ1DYvqls0Oaw8W1eDdZED0EEadPJD7tzP8ZGlNClaWrF7cf0ja9Rt0I msbfYwNzFXbSvfe6sbytXbe7knOsgZ0LPDMjTrmPeQKr1gdMwnBeMQy1RJQRJIR84XpV YUWw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=rFtz4A2JiQc9Zqd0RG5d1POBuUhaLME3bjMl2icwfg0=; b=eicnVQ0k1BR1TX05gOxHtSkeuTqBidl7ioNRVnsO2PQidT0NciewsLkri976MpXaBd qBTL1g0hplxuelfEzLU08KdSXGg/RVjp9jX5EtBa22VUOYYOx1bCni76Up4xNme1+hDg nHewXdeOyqpVCWhCfB1H8G2zsX82YmtXP5pffJAPhkzo5M/DZaW+YbANSd/vQD8bKPBh ZS7he0RQwb1iFkmz9In3qUYvHhRZMh+9NHP34zVTy4iXkFI72Ff7pe1hgWEPYxZF3jen nrsXOUms2gGPWNOWKoW3FQGrExjXudGcixtNA/XE9GO3b+bsE8nYaVbEFMfkDKByUjaM Fn3A==
X-Received: by 10.180.36.12 with SMTP id m12mr926090wij.10.1371137481939; Thu, 13 Jun 2013 08:31:21 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.194.25.230 with HTTP; Thu, 13 Jun 2013 08:31:01 -0700 (PDT)
In-Reply-To: <634914A010D0B943A035D226786325D4422DDFD452@EXVMBX020-12.exch020.serverdata.net>
References: <634914A010D0B943A035D226786325D4422DDFD452@EXVMBX020-12.exch020.serverdata.net>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Fri, 14 Jun 2013 00:31:01 +0900
Message-ID: <CAH9hSJZwMFUWTyk6jjmAN2oMxveVhY=SMs8NLCUHy47Uc+Mj1Q@mail.gmail.com>
To: Tobias Oberstein <tobias.oberstein@tavendo.de>
Content-Type: multipart/alternative; boundary="e89a8f5030ac8cb7a304df0ad2e8"
X-Gm-Message-State: ALoCoQkVAKFMczwW202H4VQQXcTY07EMmibMY47VHpGX+LGXBpFkrd4esb+zFtANDDMpU6CJlX3HBePcF8EjiwHW/HBLxHbvAVJDraV6cDG/24Wo0g3qYrxFPzfTlB7jJQlVtuHV5S9gLpCop6ZSsw+iTwNzDEtcROxg9UBpyPA4E3hVfIHl8E2ZbKHl6B3zA8QGuIB4sugn
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] permessage-deflate parameter negotiation
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Jun 2013 15:31:24 -0000
On Thu, Jun 13, 2013 at 2:20 AM, Tobias Oberstein < tobias.oberstein@tavendo.de> wrote: > After implementing permessage-deflate client/server and with all features, > I think the initial > parameter negotiation is by far the most complex part of the extension. > > I still have some questions. To keep it simple, here are a couple of > examples: > > 1) > client offers: > permessage-deflate; c2s_max_window_bits > > server response: > permessage-deflate; s2c_no_context_takeover > This is fine. The client may reset context if it wants. Sorry about Chrome's bug. It rejects this now. > > 2) > client offers: > permessage-deflate; c2s_max_window_bits > > server response: > permessage-deflate; s2c_max_window_bits=10 > Fine. The client should be able to accept data compressed using any wbits value. > > 3) > client offers: > permessage-deflate; c2s_max_window_bits ; s2c_max_window_bits=10 > > server response: > permessage-deflate; s2c_max_window_bits=8 > > Fine, too. > 4) > client offers: > permessage-deflate; c2s_max_window_bits; s2c_max_window_bits=10 > > server response: > permessage-deflate; s2c_max_window_bits=12 > > Bad. Maximum wbits the client can afford is 10. > === > > Chrome Canary fails 1 + 2 (bails out "Received an unexpected > permessage-deflate extension parameter"). > > Chrome offers a fixed "permessage-deflate; c2s_max_window_bits", so I > could not test 3 and 4. > > The current draft (in my reading) allows 1 + 2, but not 3, and not 4. > > I'll fix it to allow 3. > I think 1-3 should be successful, and 4 failed by client. > > As in my other mail, I also think a client should explicitly announce > support for "c2s_no_context_takeover": > > permessage-deflate; c2s_max_window_bits; c2s_no_context_takeover > > /Tobias > _______________________________________________ > hybi mailing list > hybi@ietf.org > https://www.ietf.org/mailman/listinfo/hybi >
- [hybi] permessage-deflate parameter negotiation Tobias Oberstein
- Re: [hybi] permessage-deflate parameter negotiati… Takeshi Yoshino
- Re: [hybi] permessage-deflate parameter negotiati… Takeshi Yoshino
- Re: [hybi] permessage-deflate parameter negotiati… Adam Rice
- Re: [hybi] permessage-deflate parameter negotiati… Takeshi Yoshino