Re: [hybi] Closing handshake

Takeshi Yoshino <tyoshino@google.com> Wed, 16 March 2016 12:25 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 D0C0012D52B for <hybi@ietfa.amsl.com>; Wed, 16 Mar 2016 05:25:21 -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 eh-DNjBvDzKN for <hybi@ietfa.amsl.com>; Wed, 16 Mar 2016 05:25:19 -0700 (PDT)
Received: from mail-yw0-x232.google.com (mail-yw0-x232.google.com [IPv6:2607:f8b0:4002:c05::232]) (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 D8FA712D5F4 for <hybi@ietf.org>; Wed, 16 Mar 2016 05:25:13 -0700 (PDT)
Received: by mail-yw0-x232.google.com with SMTP id g127so59235976ywf.2 for <hybi@ietf.org>; Wed, 16 Mar 2016 05:25: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=wCsKkptiXvCUaVrwmcL7r5HH4TGKqgq/TaXWz63D6ng=; b=JFsOPAa0jrcOGWdTflUnrYdoQrbnLjCPjuaOH6c1/lhyiZsM1sg3vEPkxCRveWNWqk vwMRDbjYVANgKM0gRUKuU/AxAMJLD3I6U653YZzCX3NTYl81EbKYH5Nk0w9YHEvJhaPM oByxmczv7r9YcgK2lUm9UL04ZoaAa9Ro/inLynv+M3s/57rGqSrOsOAhlhjSr0jG4GoM Pb3p+JV2ER8ASwQ//OyN7WPHGcKfccFztkjWnPl3uM1FtyV2vDZDsmAZ2oVqlhv1B80b Dq/NYsbmKEV3qPNdxtD+gQOk/96OYBP5rQqd9RgJ52GSJKCOyHJW6y4RV8iDBIh1ig8Y xwQw==
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=wCsKkptiXvCUaVrwmcL7r5HH4TGKqgq/TaXWz63D6ng=; b=kyLNH87cI6QEeFQ2mfPljcfGYWowWnJfqiJbMkGVFKGccghkFJwgCJAhKfGdXJs2oG +Klxbl0TNi1YWNazR38dsZZc5EBn99NfqPx2J9BZqY5DgtB0iQmvwtP8EleikP9fIAyE Jcl6K7pmQ8XZg7GNMS4fenbb3vlgfSlBKPVfvFRnMjuLhgaFhkmZ/Sy/vr8ZvsaFpCO9 YuL/vvIlxt+s/P1nmTCVBkKs80IRWfBBq0TEYagSQEogTIbQiUZ+xAXZqj/ECBG+KUBY 2/nDerZSo7Pko8jsnWi9kRNdGT+gkjnNTRPEqQ7hcOHdPgJ7TtCyueZUq56VN3o0OHXb msyg==
X-Gm-Message-State: AD7BkJLJp/rucDmwdJrBP/kMzWkjPiJOLTj5qAdshEziu+m1w4D78GE+8pg3l3ss4gj0Bwv23HnohCR1YL3Tjm7c
X-Received: by 10.129.120.133 with SMTP id t127mr1505810ywc.204.1458131113061; Wed, 16 Mar 2016 05:25:13 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.37.210.199 with HTTP; Wed, 16 Mar 2016 05:24:53 -0700 (PDT)
In-Reply-To: <CAH9hSJYCqUsnTu3D7JEa0xaJS2diyvgVVcsVNeD_6xiFFTYzqA@mail.gmail.com>
References: <CADnb78gG4+Gak+7X=Z5HVJUX+vWasUi7AtppVEiuV6hH1Q7W4w@mail.gmail.com> <CAH9hSJYCqUsnTu3D7JEa0xaJS2diyvgVVcsVNeD_6xiFFTYzqA@mail.gmail.com>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Wed, 16 Mar 2016 21:24:53 +0900
Message-ID: <CAH9hSJaGGQSHtonOVhcYXOaee2iHD0i3yzs4EBHf_AetQ5LQDw@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Content-Type: multipart/alternative; boundary=94eb2c0b0968083660052e299b75
Archived-At: <http://mailarchive.ietf.org/arch/msg/hybi/uQqsayh0-PBw4jfQ4mekavLI-3U>
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:25:22 -0000

On Wed, Mar 16, 2016 at 9:20 PM, Takeshi Yoshino <tyoshino@google.com>
wrote:

> 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.
>

and because, there's no need to have such restriction (making code
mandatory).


>
> 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/
>>
>
>