Re: [hybi] Closing handshake

Takeshi Yoshino <tyoshino@google.com> Wed, 16 March 2016 12:21 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 C1D9712D56D for <hybi@ietfa.amsl.com>; Wed, 16 Mar 2016 05:21:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.701
X-Spam-Level:
X-Spam-Status: No, score=-2.701 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] 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 iOSkLzMKXR0R for <hybi@ietfa.amsl.com>; Wed, 16 Mar 2016 05:21:13 -0700 (PDT)
Received: from mail-yw0-x236.google.com (mail-yw0-x236.google.com [IPv6:2607:f8b0:4002:c05::236]) (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 1935412D50F for <hybi@ietf.org>; Wed, 16 Mar 2016 05:21:13 -0700 (PDT)
Received: by mail-yw0-x236.google.com with SMTP id m126so35171524ywd.0 for <hybi@ietf.org>; Wed, 16 Mar 2016 05:21:13 -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; bh=9SC10BOj0MLczRy7wQ42SSuUqibfRbOEqBJCtA6Bf1k=; b=ALpArg5Ic9gx5xi1BM4dWpKfn8NemPHONB+oTq7UQCkNYSKoyFTe5js+AgKais4Svx 7jTsabd0tUTv/wNgKJ1LXvlv8+oIS2eirlcZmJJMHd7j5BB9UmztGWZXiDaisyGxapVE PeYCkytCEXWQdYez7McLy/stStrxfWV6dP9ci3JKLhQcauC64dvZQ/nixn67RPx/i4yB sAFMd4Ayo7YqibFK9b5pbz67RVrzpwjPGerz+YOQfVxPNNXgCZGbbr97C30tSiqyQusG 8QXs7v3lAgWnaQsd7q7wZQ2Cqb4vaNyj+q5gu4syKSMKvXNLMJhZwIT3FE+V0Hc80SHV L+Yw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=9SC10BOj0MLczRy7wQ42SSuUqibfRbOEqBJCtA6Bf1k=; b=coAQixaz4E3rZNU066Fjez9G/vb0ePweG5ixqGF4mwUNYcSki9+ct+kw/mJUVs8Le1 qqWpDfWn480TQt3eBi7XxH3M6ATpKUOxtUzTmsnmS3KX8RO+HYTbDxfXSr50t7HdAkLX 4P0C7xA6mDFjHYXYAgJmfn/I8dxcpDaRNitzWFeJw8F8ktXFqruxuwTHfjQD0OTpi+xR l26hmU6wWKs7vf9aKxThFZhJSOwd9fwEXU/5gTmeMcgmJkJd2fbtdpgtAXyov4bETKRG 3dGzgaouHyIwI7LJO9PA/tR1JR6dZJ1Lx40OZXe1hxeZZ92wy5XK4iMpbxf2JsK1imCb b7qg==
X-Gm-Message-State: AD7BkJJSflE1CGIfGTDtRaSDJ5si7PHVEekO9+84veSjx9hN8GXieuy+wElDAs/otIVm9ieILm0OELKpuJMqYhuo
X-Received: by 10.13.229.3 with SMTP id o3mr1682708ywe.329.1458130872288; Wed, 16 Mar 2016 05:21:12 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.37.210.199 with HTTP; Wed, 16 Mar 2016 05:20:52 -0700 (PDT)
In-Reply-To: <CADnb78gG4+Gak+7X=Z5HVJUX+vWasUi7AtppVEiuV6hH1Q7W4w@mail.gmail.com>
References: <CADnb78gG4+Gak+7X=Z5HVJUX+vWasUi7AtppVEiuV6hH1Q7W4w@mail.gmail.com>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Wed, 16 Mar 2016 21:20:52 +0900
Message-ID: <CAH9hSJYCqUsnTu3D7JEa0xaJS2diyvgVVcsVNeD_6xiFFTYzqA@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Content-Type: multipart/alternative; boundary="94eb2c0819eaae35cb052e298c83"
Archived-At: <http://mailarchive.ietf.org/arch/msg/hybi/3s9bqteFluZgfJDP7hFotHIyLyo>
Cc: Simon Pieters <zcorpan@gmail.com>, "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Closing handshake
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.17
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: <https://mailarchive.ietf.org/arch/browse/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: Wed, 16 Mar 2016 12:21:17 -0000

I think we should consider that
https://tools.ietf.org/html/rfc6455#section-7.1.2 is broken.

Chrome performs closing handshake with an empty body when a code is not
provided. Firefox does so too.

Takeshi

On Wed, Mar 16, 2016 at 6:57 PM, Anne van Kesteren <annevk@annevk.nl> wrote:

> Per https://tools.ietf.org/html/rfc6455#section-7.1.2 the /code/
> argument is required, however, in the API it is optional, and judging
> from
> https://mxr.mozilla.org/mozilla-central/source/dom/webidl/WebSocket.webidl
> it is optional in implementations too.
>
> What is the correct behavior here and which specification should be
> patched and how?
>
>
> --
> https://annevankesteren.nl/
>