
From joakim@intalio.com  Tue Dec  3 11:00:19 2013
Return-Path: <joakim@intalio.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 14E6B1AE1AB for <hybi@ietfa.amsl.com>; Tue,  3 Dec 2013 11:00:19 -0800 (PST)
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=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
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 RIYFob_S6l4I for <hybi@ietfa.amsl.com>; Tue,  3 Dec 2013 11:00:17 -0800 (PST)
Received: from mail-ea0-f178.google.com (mail-ea0-f178.google.com [209.85.215.178]) by ietfa.amsl.com (Postfix) with ESMTP id 129FE1AC829 for <hybi@ietf.org>; Tue,  3 Dec 2013 11:00:16 -0800 (PST)
Received: by mail-ea0-f178.google.com with SMTP id d10so10479518eaj.9 for <hybi@ietf.org>; Tue, 03 Dec 2013 11:00:13 -0800 (PST)
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:date :message-id:subject:from:to:cc:content-type; bh=AHLO7WtSwoT+yebgsJ/fKSdyCKLUQkt8p0xywnwejKM=; b=Yh4yUxcrJEK5ov4JaMZFq2nnfkB40IVyqjInqri/fuhrcUvtbMb/Fp050BX49o1DF9 FHIjcCwgxaIVYJaDSiLLB/D/7zKfEeYB0z4/8fLGvikquLvJV3ePzVm2qP1vKQIKo9h8 ZCHwnUCXahXsLy09u/3vnm7F/of1oT81M+C438GvHF3QioUO7LwMyAsj+iQdeF8nPLYj qkrP92HI9uR3fcW9Q37jQ+3Oee4+zFPoTLG4xgFmwQDUb80e5xbR1gFLC88vkou/NVDb 5wN20ZMsLw9RXErKGtWdPtDEVpd7Zto2PCOLBLanW6zewSrMgWsoMZh9zi4s/y3qwEUa 8QBg==
X-Gm-Message-State: ALoCoQlr2qgNl0OVpCdXOmv8MQldNpqojK0EZqow05ydjz4UynWovlGy+SZUTLvf0XZ6fILVNEvd
MIME-Version: 1.0
X-Received: by 10.14.225.2 with SMTP id y2mr4125297eep.62.1386097213513; Tue, 03 Dec 2013 11:00:13 -0800 (PST)
Received: by 10.14.208.131 with HTTP; Tue, 3 Dec 2013 11:00:13 -0800 (PST)
In-Reply-To: <CAH9hSJaz0mPrWYsCtxFp67EKK3=reRrs3HYSE6Sq9ZnE4m+EFw@mail.gmail.com>
References: <CAH9hSJant3VBw0FBM69V9wPvi3WmJLikZdX4ySELy+CShgoOKA@mail.gmail.com> <5BEA69BA-D0D4-4F4A-8CFB-741A433EAAA6@zaphoyd.com> <CAH9hSJYNrBkf=2=2DHdipvXwN4XEKDe2BOc4g1eZr38U7m7jdw@mail.gmail.com> <CAG4zZZDtUEnvgPmcKWsE9mFockUYA0PDFUE1SxNr+ubN0v9=xg@mail.gmail.com> <CAH9hSJZqR6L8fWTN_p915atXniuAbh-Nxb6FnPapoVwpdY3bAg@mail.gmail.com> <CAH9hSJY-=jti+AVPZjVJCpN9zTDTFpgbM_2WSQfnQYj-or9cgg@mail.gmail.com> <634914A010D0B943A035D226786325D44469CD51AB@EXVMBX020-12.exch020.serverdata.net> <CAH9hSJawMaDt1dUBjvu9GvPMMtw0L=QAHOzmMrZWjHtq1MfchQ@mail.gmail.com> <CAH9hSJZ3y4pmmdFh0DJeJQi4e3S8NdAxphrJ2NaCteFU=E570A@mail.gmail.com> <CAH9hSJboVJ=6LYgwL2qPjT9=Y5a_ffYocZDzTgao_Ob3fb1h+g@mail.gmail.com> <CAH9hSJaz0mPrWYsCtxFp67EKK3=reRrs3HYSE6Sq9ZnE4m+EFw@mail.gmail.com>
Date: Tue, 3 Dec 2013 12:00:13 -0700
Message-ID: <CAG4zZZB6m8kxee4iabCpsmv48qV6WQtaa5vQ18ivBsM19afTFA@mail.gmail.com>
From: Joakim Erdfelt <joakim@intalio.com>
To: Takeshi Yoshino <tyoshino@google.com>
Content-Type: multipart/alternative; boundary=047d7b66fc2509392704eca5e84f
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] [permessage-deflate] Renaming s2c_ and c2s_ prefix to server_ and client_
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.15
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: Tue, 03 Dec 2013 19:00:19 -0000

--047d7b66fc2509392704eca5e84f
Content-Type: text/plain; charset=ISO-8859-1

What's the expected "go live" for Chrome 32?

--
Joakim Erdfelt <joakim@intalio.com>
webtide.com <http://www.webtide.com/> - intalio.com/jetty
Expert advice, services and support from from the Jetty & CometD experts
eclipse.org/jetty - cometd.org


On Thu, Nov 28, 2013 at 10:52 PM, Takeshi Yoshino <tyoshino@google.com>wrote:

> Hi,
>
> I introduced Chrome's enable-websocket-experimental-implementation flag in
> this thread which has been used to turn on permessage-deflate feature. The
> feature is planned to be turned on by default on Chrome 32, and the flag is
> going to be used for another purpose after Chrome 32 release. So, please
> unset the flag if you're only interested in trying out permessage-deflate
> feature. Keeping the flag turned on may make your Chrome unnecessarily
> unstable.
>
> Thanks
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>
>

--047d7b66fc2509392704eca5e84f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">What&#39;s the expected &quot;go live&quot; for Chrome 32?=
</div><div class=3D"gmail_extra"><br clear=3D"all"><div><div dir=3D"ltr"><d=
iv>--</div><div>Joakim Erdfelt &lt;<a href=3D"mailto:joakim@intalio.com" ta=
rget=3D"_blank">joakim@intalio.com</a>&gt;</div>
<div><a href=3D"http://www.webtide.com/" target=3D"_blank">webtide.com</a>=
=A0- <a href=3D"http://intalio.com/jetty" target=3D"_blank">intalio.com/jet=
ty</a></div><div><span>Expert advice, services and support from=A0</span><s=
pan>from the Jetty &amp; CometD experts</span></div>
<div><a href=3D"http://eclipse.org/jetty/" target=3D"_blank">eclipse.org/je=
tty</a>=A0-=A0<a href=3D"http://cometd.org/" target=3D"_blank">cometd.org</=
a></div></div></div>
<br><br><div class=3D"gmail_quote">On Thu, Nov 28, 2013 at 10:52 PM, Takesh=
i Yoshino <span dir=3D"ltr">&lt;<a href=3D"mailto:tyoshino@google.com" targ=
et=3D"_blank">tyoshino@google.com</a>&gt;</span> wrote:<br><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pad=
ding-left:1ex">
<div dir=3D"ltr">Hi,<div><br></div><div>I introduced Chrome&#39;s enable-we=
bsocket-experimental-implementation flag in this thread which has been used=
 to turn on permessage-deflate feature. The feature is planned to be turned=
 on by default on Chrome 32, and the flag is going to be used for another p=
urpose after Chrome 32 release. So, please unset the flag if you&#39;re onl=
y interested in trying out permessage-deflate feature. Keeping the flag tur=
ned on may make your Chrome unnecessarily unstable.</div>



<div><br></div><div>Thanks</div></div>
<br>_______________________________________________<br>
hybi mailing list<br>
<a href=3D"mailto:hybi@ietf.org">hybi@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/hybi" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/hybi</a><br>
<br></blockquote></div><br></div>

--047d7b66fc2509392704eca5e84f--

From tyoshino@google.com  Tue Dec  3 19:22:15 2013
Return-Path: <tyoshino@google.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 282FA1AE02B for <hybi@ietfa.amsl.com>; Tue,  3 Dec 2013 19:22:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.379
X-Spam-Level: 
X-Spam-Status: No, score=-1.379 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=no
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 ejTtz94yKmPL for <hybi@ietfa.amsl.com>; Tue,  3 Dec 2013 19:22:13 -0800 (PST)
Received: from mail-wi0-x22d.google.com (mail-wi0-x22d.google.com [IPv6:2a00:1450:400c:c05::22d]) by ietfa.amsl.com (Postfix) with ESMTP id 06A0F1AE019 for <hybi@ietf.org>; Tue,  3 Dec 2013 19:22:12 -0800 (PST)
Received: by mail-wi0-f173.google.com with SMTP id hn9so3202985wib.0 for <hybi@ietf.org>; Tue, 03 Dec 2013 19:22:09 -0800 (PST)
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=crP+17JuVvtjSGwIOuSk1x4v7olCt8WU2gfIweol/DE=; b=oMuGaWxdlT+8gdncJsaFSBKkrF42TBSaPlpgUyDoyhfKv2CZtFe/5IM3LyZdoAkutg VWVKIAuRYlgXqHx23sInDFK0taevPwXymls9Q9ir2jlpoP0a/CNdX967emJcW7pDqHxT pMkNTc02mqNQTe0ohaAAVi1mYNpY6PB3EQ9/rxNr2USFYwu71KA1At+3kmpG3/wNfTzv PygcRGgn1EFOTGoQUxpl9XatSXB37Q1fmzO7fk40chH3j6pIobKYlbfejSraaeKsscPm 02nAoTw/NAU5hXgb0TSYiO8li5g6VQ3pYh8kfat09KijUh0kEyrZIcCKTRGyiKm4MB6J vcig==
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:content-type; bh=crP+17JuVvtjSGwIOuSk1x4v7olCt8WU2gfIweol/DE=; b=Mb7rs6qepwUPHgmzjk3r2CNyhiJ6OqPbfL+Y+s/TSZ83cnTMR5/ygCY/OBBCHN2K45 Da4fHePYvquNvefjW2JMqEg5O7bRf2NCRcOY7N7OE2a8VFiq8FTw61LvICjbgFhNFPuF OvmQMIh79KdYX9TDgug29J7EKneRhX57NBXpIKHlbR3gkCPU9VqzM3He8si8m0Z+H0Mf L5a6K+SKTiPHnK8hoHoyzDH5Fl736xlUU76dsWxP9D2Ydnd3jj20S+lUPHYR8aFWN6ug EhBRNU/Co3rtnd8YkrWY0R6jAx/aeuA1nHbZsQ+fE4gj07TiLxNGxEcczQ76UofzcS6w yEXQ==
X-Gm-Message-State: ALoCoQnOnf05qd/BH6UHwy/uPq9i248KvOTbBkns7W8iSYcejOEGjEscP/FpRVreTya8L+80XgNvedukcDsiobWcYo0PS5xtshZG0b/fwf1c138pZRxCBp8wpMfGidyRXcKzKsi3EjogaJWayoRIBfH7D2GQUxXNvVG+wb2GnOIBAld/7yDMqDEO2c+QbJIfo2714pZkjD2x
X-Received: by 10.194.187.101 with SMTP id fr5mr117781wjc.76.1386127329679; Tue, 03 Dec 2013 19:22:09 -0800 (PST)
MIME-Version: 1.0
Received: by 10.194.8.231 with HTTP; Tue, 3 Dec 2013 19:21:49 -0800 (PST)
In-Reply-To: <CAG4zZZB6m8kxee4iabCpsmv48qV6WQtaa5vQ18ivBsM19afTFA@mail.gmail.com>
References: <CAH9hSJant3VBw0FBM69V9wPvi3WmJLikZdX4ySELy+CShgoOKA@mail.gmail.com> <5BEA69BA-D0D4-4F4A-8CFB-741A433EAAA6@zaphoyd.com> <CAH9hSJYNrBkf=2=2DHdipvXwN4XEKDe2BOc4g1eZr38U7m7jdw@mail.gmail.com> <CAG4zZZDtUEnvgPmcKWsE9mFockUYA0PDFUE1SxNr+ubN0v9=xg@mail.gmail.com> <CAH9hSJZqR6L8fWTN_p915atXniuAbh-Nxb6FnPapoVwpdY3bAg@mail.gmail.com> <CAH9hSJY-=jti+AVPZjVJCpN9zTDTFpgbM_2WSQfnQYj-or9cgg@mail.gmail.com> <634914A010D0B943A035D226786325D44469CD51AB@EXVMBX020-12.exch020.serverdata.net> <CAH9hSJawMaDt1dUBjvu9GvPMMtw0L=QAHOzmMrZWjHtq1MfchQ@mail.gmail.com> <CAH9hSJZ3y4pmmdFh0DJeJQi4e3S8NdAxphrJ2NaCteFU=E570A@mail.gmail.com> <CAH9hSJboVJ=6LYgwL2qPjT9=Y5a_ffYocZDzTgao_Ob3fb1h+g@mail.gmail.com> <CAH9hSJaz0mPrWYsCtxFp67EKK3=reRrs3HYSE6Sq9ZnE4m+EFw@mail.gmail.com> <CAG4zZZB6m8kxee4iabCpsmv48qV6WQtaa5vQ18ivBsM19afTFA@mail.gmail.com>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Wed, 4 Dec 2013 12:21:49 +0900
Message-ID: <CAH9hSJa6--DAp6SQfD9AmEM_RRupSSmWWVG6DMiTbUGoK9b1GQ@mail.gmail.com>
To: Joakim Erdfelt <joakim@intalio.com>
Content-Type: multipart/alternative; boundary=047d7bd6b9ac19759604ecacebd6
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] [permessage-deflate] Renaming s2c_ and c2s_ prefix to server_ and client_
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.15
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: Wed, 04 Dec 2013 03:22:15 -0000

--047d7bd6b9ac19759604ecacebd6
Content-Type: text/plain; charset=ISO-8859-1

I can't tell the specific date, but regularly we release a new version
every 6 weeks and it tends to be a little longer at the end of year. We've
released 31 on Nov 12.

http://www.chromium.org/developers/calendar

Thanks
Takeshi


On Wed, Dec 4, 2013 at 4:00 AM, Joakim Erdfelt <joakim@intalio.com> wrote:

> What's the expected "go live" for Chrome 32?
>
> --
> Joakim Erdfelt <joakim@intalio.com>
> webtide.com <http://www.webtide.com/> - intalio.com/jetty
> Expert advice, services and support from from the Jetty & CometD experts
> eclipse.org/jetty - cometd.org
>
>
> On Thu, Nov 28, 2013 at 10:52 PM, Takeshi Yoshino <tyoshino@google.com>wrote:
>
>> Hi,
>>
>> I introduced Chrome's enable-websocket-experimental-implementation flag
>> in this thread which has been used to turn on permessage-deflate feature.
>> The feature is planned to be turned on by default on Chrome 32, and the
>> flag is going to be used for another purpose after Chrome 32 release. So,
>> please unset the flag if you're only interested in trying out
>> permessage-deflate feature. Keeping the flag turned on may make your Chrome
>> unnecessarily unstable.
>>
>> Thanks
>>
>> _______________________________________________
>> hybi mailing list
>> hybi@ietf.org
>> https://www.ietf.org/mailman/listinfo/hybi
>>
>>
>

--047d7bd6b9ac19759604ecacebd6
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I can&#39;t tell the specific date, but regularly we relea=
se a new version every 6 weeks and it tends to be a little longer at the en=
d of year. We&#39;ve released 31 on Nov 12.<div><br></div><div><a href=3D"h=
ttp://www.chromium.org/developers/calendar" target=3D"_blank">http://www.ch=
romium.org/developers/calendar</a><br>


</div><div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">Thank=
s<br clear=3D"all"><div>Takeshi</div>
<br><br><div class=3D"gmail_quote">On Wed, Dec 4, 2013 at 4:00 AM, Joakim E=
rdfelt <span dir=3D"ltr">&lt;<a href=3D"mailto:joakim@intalio.com" target=
=3D"_blank">joakim@intalio.com</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex">


<div dir=3D"ltr">What&#39;s the expected &quot;go live&quot; for Chrome 32?=
</div><div class=3D"gmail_extra"><div><br clear=3D"all"><div><div dir=3D"lt=
r"><div>--</div><div>Joakim Erdfelt &lt;<a href=3D"mailto:joakim@intalio.co=
m" target=3D"_blank">joakim@intalio.com</a>&gt;</div>



<div><a href=3D"http://www.webtide.com/" target=3D"_blank">webtide.com</a>=
=A0- <a href=3D"http://intalio.com/jetty" target=3D"_blank">intalio.com/jet=
ty</a></div><div><span>Expert advice, services and support from=A0</span><s=
pan>from the Jetty &amp; CometD experts</span></div>



<div><a href=3D"http://eclipse.org/jetty/" target=3D"_blank">eclipse.org/je=
tty</a>=A0-=A0<a href=3D"http://cometd.org/" target=3D"_blank">cometd.org</=
a></div></div></div>
<br><br></div><div class=3D"gmail_quote"><div><div>On Thu, Nov 28, 2013 at =
10:52 PM, Takeshi Yoshino <span dir=3D"ltr">&lt;<a href=3D"mailto:tyoshino@=
google.com" target=3D"_blank">tyoshino@google.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
rder-left:1px #ccc solid;padding-left:1ex"><div><div>
<div dir=3D"ltr">Hi,<div><br></div><div>I introduced Chrome&#39;s enable-we=
bsocket-experimental-implementation flag in this thread which has been used=
 to turn on permessage-deflate feature. The feature is planned to be turned=
 on by default on Chrome 32, and the flag is going to be used for another p=
urpose after Chrome 32 release. So, please unset the flag if you&#39;re onl=
y interested in trying out permessage-deflate feature. Keeping the flag tur=
ned on may make your Chrome unnecessarily unstable.</div>






<div><br></div><div>Thanks</div></div>
<br></div></div><div>_______________________________________________<br>
hybi mailing list<br>
<a href=3D"mailto:hybi@ietf.org" target=3D"_blank">hybi@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/hybi" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/hybi</a><br>
<br></div></blockquote></div><br></div>
</blockquote></div><br></div></div>

--047d7bd6b9ac19759604ecacebd6--

From yhirano@google.com  Sun Dec  8 23:36:41 2013
Return-Path: <yhirano@google.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AE82A1ADEB1 for <hybi@ietfa.amsl.com>; Sun,  8 Dec 2013 23:36:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.379
X-Spam-Level: 
X-Spam-Status: No, score=-1.379 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=no
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 IuicndI8Z83r for <hybi@ietfa.amsl.com>; Sun,  8 Dec 2013 23:36:39 -0800 (PST)
Received: from mail-qa0-x230.google.com (mail-qa0-x230.google.com [IPv6:2607:f8b0:400d:c00::230]) by ietfa.amsl.com (Postfix) with ESMTP id 917FC1AE039 for <hybi@ietf.org>; Sun,  8 Dec 2013 23:36:39 -0800 (PST)
Received: by mail-qa0-f48.google.com with SMTP id w5so2349082qac.7 for <hybi@ietf.org>; Sun, 08 Dec 2013 23:36:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=Hoys/CSfGrQZdE+Dh02H0NVH+MKvhEakijab438K/r4=; b=IM4CS8T6+B5YiPLh0LKusGptwPpWAueKsTpBuQ9bKVZi+a+f4YJWJyTyPP1fI4V68D bXhkS1nTkxBHnNPEYZh/RDru1DNDhiF9Nkmq7A7bYK85oYSPYAw2gfcc07wrrEpzinTV b7cPP5A31OGalSGaFwn5IHz6xZzsBr13sKwmGJwxM4PI1DxETOU0Jqe2MWunUY5o3Rys gWjnvGzMnoFAl84x8iVcL7crBDoeEACb7JNR1YBC/haH1DhrCJz6XVrnX94neLO0ZqPl 1bVFH/qeCGZfnu5tY6nDG2VopWflZtOJEWrgSjLVxbQHWrFUmb1drw0D2iroQGYLNMK6 tr+w==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=Hoys/CSfGrQZdE+Dh02H0NVH+MKvhEakijab438K/r4=; b=eDEfVWtRTHzGCsskKQ50T470Ws9ZVSvI9aBwNjGuDWMNRkOzMYJOaHlHH3J/c3A4ry cLu5I3xJTZyfILALBraf+k/L+dVUudvhe9Z522do6v+L7SzbmTo/HE4y+0WD3ZZVLNMb GrllXfztGzvcnNkjnsHXIVNM6dJpYC3IVsDtA=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:date:message-id:subject:from :to:content-type; bh=Hoys/CSfGrQZdE+Dh02H0NVH+MKvhEakijab438K/r4=; b=CRfglw5pwZE6nThp3vtuJjn0GndULpfbxR7lnyDht7Yi0z2dAFomKE5HD67ytfKSD5 fjTH8T8WJWgQGquv03a4heFh2v0nqKZM6qWkl7RoYMTT/xs5c9txS5mr8/DFPrITjTKU ggr5Q9skw2epnlYFII+KhDADx18dOjLy16OfiV3UqrzEROhTF3D0mgQbKRLGZwearTgW R5R0XTPwyGXr4Wn04HYkdgmz4qx8SWG/lDdsVCjlpTnx0WFL7f3YDkdBzG7EMV7e1Osa qqWiDljhWSK+fKlnhAF3ZA8vroyIjv0grfB20QSIVSmicmfWT8VEw2TChkscqDK45CJY O7xA==
X-Gm-Message-State: ALoCoQl7bBzNzmmPwihT2lVcehuJ4rGpBi/q06EHcVnexOHHi5mWKYe6PlSd3Ij/GGZ1zGcEHy8nzAr4LbqC1g4PAeeWBeQmjoRqrE8I5A3Fm1JfDBSg5ubr63pIMpc6QI/PQT3F9MfgAMkOlo29Dk92xPjdrDqbOnqkXCffstXOmSBvdl15hrwp0kJ2v2TSKj93nWTQLmr7
MIME-Version: 1.0
X-Received: by 10.224.129.202 with SMTP id p10mr31312685qas.84.1386574594592;  Sun, 08 Dec 2013 23:36:34 -0800 (PST)
Sender: yhirano@google.com
Received: by 10.140.39.133 with HTTP; Sun, 8 Dec 2013 23:36:34 -0800 (PST)
Date: Mon, 9 Dec 2013 16:36:34 +0900
X-Google-Sender-Auth: UN5i0z5xuZ7MBn_Un5X8JQWaxCA
Message-ID: <CABihn6ErtW-ewspJ9LAVU-kpf9iJuPhbap+0KjSqfZFgWCy+nw@mail.gmail.com>
From: Yutaka Hirano <yhirano@chromium.org>
To: hybi@ietf.org
Content-Type: multipart/alternative; boundary=001a11c2c1242a603404ed150eda
Subject: [hybi] was_clean and _Fail the WebSocket connection_
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.15
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: Mon, 09 Dec 2013 07:37:33 -0000

--001a11c2c1242a603404ed150eda
Content-Type: text/plain; charset=ISO-8859-1

Hi,

I'm revising WebSocket implementation on Chrome and I have some questions
about RFC6455.

A: I think a client should _Fail the WebSocket Connection_ when it receives
a masked frame
    instead of just closing the connection as specified in the spec, given
that other protocol errors
    such as RSV or opcode errors cause failure. Is that right?
B: If A holds, is it possible to say that all client-side unclean
connection close are caused by _Fail the
 WebSocket Connection_ operation?

Thanks,

--001a11c2c1242a603404ed150eda
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div><br></div><div>I&#39;m revising WebSocket implemen=
tation on Chrome and I have some questions about RFC6455.</div><div><br></d=
iv><div>A: I think a client should _Fail the WebSocket Connection_=A0when i=
t receives a masked frame</div>
<div>=A0 =A0 instead of just closing the connection as specified in the spe=
c, given that other protocol errors</div><div>=A0 =A0 such as RSV or opcode=
 errors cause failure. Is that right?</div><div><span style=3D"white-space:=
pre-wrap">B: If A holds, is it possible to say that all client-side unclean=
 connection close are caused by _Fail the</span></div>

<div><span style=3D"white-space:pre-wrap">     WebSocket Connection_ operat=
ion?</span></div><div><span style=3D"white-space:pre-wrap"><br></span></div=
><div><span style=3D"white-space:pre-wrap">Thanks,</span></div>
<div><span style=3D"white-space:pre-wrap"><br></span></div></div>

--001a11c2c1242a603404ed150eda--

From joakim@intalio.com  Mon Dec  9 05:45:06 2013
Return-Path: <joakim@intalio.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 90F041AE2D3 for <hybi@ietfa.amsl.com>; Mon,  9 Dec 2013 05:45:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.023
X-Spam-Level: 
X-Spam-Status: No, score=0.023 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, J_CHICKENPOX_35=0.6, RCVD_IN_DNSWL_LOW=-0.7] autolearn=no
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 kFxWAmly-4qc for <hybi@ietfa.amsl.com>; Mon,  9 Dec 2013 05:45:04 -0800 (PST)
Received: from mail-ea0-f174.google.com (mail-ea0-f174.google.com [209.85.215.174]) by ietfa.amsl.com (Postfix) with ESMTP id 40EC61AE2CE for <hybi@ietf.org>; Mon,  9 Dec 2013 05:45:04 -0800 (PST)
Received: by mail-ea0-f174.google.com with SMTP id b10so1570661eae.19 for <hybi@ietf.org>; Mon, 09 Dec 2013 05:44:58 -0800 (PST)
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:date :message-id:subject:from:to:cc:content-type; bh=WEAF1kVOd66fuUvXgQSWsFqkI5ShoHGLrdj1GVCJn0E=; b=Cgv5is6wJ/Fu/w6jAYsKKNJt1oG4C4d00edVYrHonadYaF6SJxxXqxtbfCaJfjw33j JUXvnfLD5b7bHer7SSIsKyaFOD6UkM0hTuc9SBeDHcifDVaCXADvkqInjwfHkNp8ceth Xi4CGklFTY6ox0Xcb6mlBLXh2X9/F58StUyf4D8e9UAC++sBFD3Fm4kQ8cbBxxObD4TB HAIAWz4zhyqW+DrW5S7dj6e7s7pk9LSa+N02qv5oh+IUWTgTldOdKI4sItXxilcNjMXs y+SRkrJcsL1Hz27PzYgFzTHVcnhV+nC5m0X8FFqCV+EkWozi/sSkAUzN6fgWiRxzKhjj VMrQ==
X-Gm-Message-State: ALoCoQl/Fra+T+GYfhOgN7X7pW1KpcWvEEDnhj6ozlU8s9VJS+kSyTMHA1w2KrNsqm6Vr2MLrMXR
MIME-Version: 1.0
X-Received: by 10.15.108.73 with SMTP id cc49mr3183830eeb.93.1386596698763; Mon, 09 Dec 2013 05:44:58 -0800 (PST)
Received: by 10.14.208.131 with HTTP; Mon, 9 Dec 2013 05:44:58 -0800 (PST)
In-Reply-To: <CABihn6ErtW-ewspJ9LAVU-kpf9iJuPhbap+0KjSqfZFgWCy+nw@mail.gmail.com>
References: <CABihn6ErtW-ewspJ9LAVU-kpf9iJuPhbap+0KjSqfZFgWCy+nw@mail.gmail.com>
Date: Mon, 9 Dec 2013 06:44:58 -0700
Message-ID: <CAG4zZZBtjyFXMWthh3XwDaOBxc94GTBsFjXqS7=y-_1+913FKA@mail.gmail.com>
From: Joakim Erdfelt <joakim@intalio.com>
To: Yutaka Hirano <yhirano@chromium.org>
Content-Type: multipart/alternative; boundary=089e0168190cad45a504ed1a33eb
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] was_clean and _Fail the WebSocket connection_
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.15
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: Mon, 09 Dec 2013 13:45:06 -0000

--089e0168190cad45a504ed1a33eb
Content-Type: text/plain; charset=ISO-8859-1

For a client receiving a masked frame, that's handled by Section 5.1.
Overview.

   A server MUST NOT mask any frames that it sends to
   the client.  A client MUST close a connection if it detects a masked
   frame.  In this case, it MAY use the status code 1002 (protocol
   error) as defined in Section 7.4.1.  (These rules might be relaxed in
   a future specification.)

In Jetty we close the connection on any protocol level error / failure, as
we can't trust the connection to be sane anymore.
Especially when Extensions are in use.

Things like (this is the list for incoming frames only):

 * Too large payload on control frames
 * If an unknown opcode is received
 * Close frames with payload length of 1
 * A data frame payload exceeding Integer.MAX_VALUE (this is an arbitrary
memory sanity check for Jetty, not part of the spec.  only used when
complete message delivery is expected, vs streaming message delivery.  The
intSane check)
 * A data frame payload that will put the complete message size over the
per-endpoint configuration (part of the javax.websocket spec)
 * A RSV flag is set, yet no Extension in use is registered for it.
 * If server received an un-masked frame. (this is in violation of the rfc
spec, but is a controllable policy configuration)
 * Client received a masked frame.
 * If an extension reported an error in processing the incoming frame.
 * If any IOException occurs during read / parse
 * If a Binary or Text frame is received without a prior FIN ending the
prior message.
 * If a continuation frame is received after a FIN
 * If a control frame with FIN=false is received
 * Any memory allocation error for the incoming payload or complete message

(Incidentally, most of these are part of the autobahn websocket protocol
testsuite)

All of these will cause:

 * Local endpoint onError() notification
 * Remote endpoint close / harsh (don't wait for close response. aka,
wasClean=false)
 * Connection disconnect
 * Local endpoint onClose() notification (with harsh indicator)




--
Joakim Erdfelt <joakim@intalio.com>
webtide.com <http://www.webtide.com/> - intalio.com/jetty
Expert advice, services and support from from the Jetty & CometD experts
eclipse.org/jetty - cometd.org


On Mon, Dec 9, 2013 at 12:36 AM, Yutaka Hirano <yhirano@chromium.org> wrote:

> Hi,
>
> I'm revising WebSocket implementation on Chrome and I have some questions
> about RFC6455.
>
> A: I think a client should _Fail the WebSocket Connection_ when it
> receives a masked frame
>     instead of just closing the connection as specified in the spec, given
> that other protocol errors
>     such as RSV or opcode errors cause failure. Is that right?
> B: If A holds, is it possible to say that all client-side unclean
> connection close are caused by _Fail the
>  WebSocket Connection_ operation?
>
> Thanks,
>
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>
>

--089e0168190cad45a504ed1a33eb
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">For a client receiving a masked frame, that&#39;s handled =
by Section 5.1. Overview.<div><br></div><div><div>=A0 =A0A server MUST NOT =
mask any frames that it sends to</div><div>=A0 =A0the client. =A0A client M=
UST close a connection if it detects a masked</div>
<div>=A0 =A0frame. =A0In this case, it MAY use the status code 1002 (protoc=
ol</div><div>=A0 =A0error) as defined in Section 7.4.1. =A0(These rules mig=
ht be relaxed in</div><div>=A0 =A0a future specification.)</div></div><div>=
<br></div><div>
In Jetty we close the connection on any protocol level error / failure, as =
we can&#39;t trust the connection to be sane anymore.</div><div>Especially =
when Extensions are in use.</div><div><br></div><div>Things like (this is t=
he list for incoming frames only):</div>
<div><br></div><div>=A0* Too large payload on control frames</div><div>=A0*=
 If an unknown opcode is received</div><div>=A0* Close frames with payload =
length of 1</div><div>=A0* A data frame payload exceeding Integer.MAX_VALUE=
 (this is an arbitrary memory sanity check for Jetty, not part of the spec.=
 =A0only used when complete message delivery is expected, vs streaming mess=
age delivery. =A0The intSane check)</div>
<div>=A0* A data frame payload that will put the complete message size over=
 the per-endpoint configuration (part of the javax.websocket spec)</div><di=
v>=A0* A RSV flag is set, yet no Extension in use is registered for it.</di=
v>
<div>=A0* If server received an un-masked frame. (this is in violation of t=
he rfc spec, but is a controllable policy configuration)</div><div>=A0* Cli=
ent received a masked frame.</div><div>=A0* If an extension reported an err=
or in processing the incoming frame.</div>
<div>=A0* If any IOException occurs during read / parse</div><div>=A0* If a=
 Binary or Text frame is received without a prior FIN ending the prior mess=
age.</div><div>=A0* If a continuation frame is received after a FIN</div><d=
iv>
=A0* If a control frame with FIN=3Dfalse is received</div><div>=A0* Any mem=
ory allocation error for the incoming payload or complete message</div><div=
><br></div><div>(Incidentally, most of these are part of the autobahn webso=
cket protocol testsuite)</div>
<div><br></div><div>All of these will cause:</div><div><br></div><div>=A0* =
Local endpoint onError() notification</div><div>=A0* Remote endpoint close =
/ harsh (don&#39;t wait for close response. aka, wasClean=3Dfalse)</div><di=
v>
=A0* Connection disconnect</div><div>=A0* Local endpoint onClose() notifica=
tion (with harsh indicator)</div><div><br></div><div><br></div><div><br></d=
iv></div><div class=3D"gmail_extra"><br clear=3D"all"><div><div dir=3D"ltr"=
><div>
--</div><div>Joakim Erdfelt &lt;<a href=3D"mailto:joakim@intalio.com" targe=
t=3D"_blank">joakim@intalio.com</a>&gt;</div><div><a href=3D"http://www.web=
tide.com/" target=3D"_blank">webtide.com</a>=A0- <a href=3D"http://intalio.=
com/jetty" target=3D"_blank">intalio.com/jetty</a></div>
<div><span>Expert advice, services and support from=A0</span><span>from the=
 Jetty &amp; CometD experts</span></div><div><a href=3D"http://eclipse.org/=
jetty/" target=3D"_blank">eclipse.org/jetty</a>=A0-=A0<a href=3D"http://com=
etd.org/" target=3D"_blank">cometd.org</a></div>
</div></div>
<br><br><div class=3D"gmail_quote">On Mon, Dec 9, 2013 at 12:36 AM, Yutaka =
Hirano <span dir=3D"ltr">&lt;<a href=3D"mailto:yhirano@chromium.org" target=
=3D"_blank">yhirano@chromium.org</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex">
<div dir=3D"ltr">Hi,<div><br></div><div>I&#39;m revising WebSocket implemen=
tation on Chrome and I have some questions about RFC6455.</div><div><br></d=
iv><div>A: I think a client should _Fail the WebSocket Connection_=A0when i=
t receives a masked frame</div>

<div>=A0 =A0 instead of just closing the connection as specified in the spe=
c, given that other protocol errors</div><div>=A0 =A0 such as RSV or opcode=
 errors cause failure. Is that right?</div><div><span style=3D"white-space:=
pre-wrap">B: If A holds, is it possible to say that all client-side unclean=
 connection close are caused by _Fail the</span></div>


<div><span style=3D"white-space:pre-wrap">     WebSocket Connection_ operat=
ion?</span></div><div><span style=3D"white-space:pre-wrap"><br></span></div=
><div><span style=3D"white-space:pre-wrap">Thanks,</span></div>
<div><span style=3D"white-space:pre-wrap"><br></span></div></div>
<br>_______________________________________________<br>
hybi mailing list<br>
<a href=3D"mailto:hybi@ietf.org">hybi@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/hybi" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/hybi</a><br>
<br></blockquote></div><br></div>

--089e0168190cad45a504ed1a33eb--

From yhirano@google.com  Mon Dec  9 19:44:16 2013
Return-Path: <yhirano@google.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 396EB1AE165 for <hybi@ietfa.amsl.com>; Mon,  9 Dec 2013 19:44:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.779
X-Spam-Level: 
X-Spam-Status: No, score=-0.779 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, J_CHICKENPOX_35=0.6, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=no
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 e3gXTtM17tLH for <hybi@ietfa.amsl.com>; Mon,  9 Dec 2013 19:44:14 -0800 (PST)
Received: from mail-qc0-x231.google.com (mail-qc0-x231.google.com [IPv6:2607:f8b0:400d:c01::231]) by ietfa.amsl.com (Postfix) with ESMTP id EB2641AE127 for <hybi@ietf.org>; Mon,  9 Dec 2013 19:44:13 -0800 (PST)
Received: by mail-qc0-f177.google.com with SMTP id m20so3436015qcx.22 for <hybi@ietf.org>; Mon, 09 Dec 2013 19:44:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=JvIyuJ8Eocx9hAx5nlzk/W5k3AhCohQkojRhTIDNdYU=; b=IVxk3rUkgCX76kLvaTpRHAI71hWnapWe08vw7HT10XJOWhqUPqawqnEvNvYz4jiddl VrEDZwEK5AhoBGCYy3bQH+NUFwc6BZci073jtVhiblEVJ14o4TDw3YkU49dpHaVu0Kbv E7NW+fA92My+gzuZBdaZX34+gOp5JhLEuAabDQ1ELrE32BeaWk3txZbYBnP0wMauQwEJ e3s+4pZEPvTvgAPS5+WUIq+ai3EmZmag/NnLgxFVE6s180RgwckSqhC5eUWmxyvQh35I eUZBb3q/Ds5BLJnvxo7HePYI3E9tH0fSGtGVtpEkxjHxRAT0reqAAM/nqrL19YE8x1kd HK0A==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=JvIyuJ8Eocx9hAx5nlzk/W5k3AhCohQkojRhTIDNdYU=; b=emzpDQMd6s3YpKZoyIObNCD9aM6e7uAHV5M7iZB20hsfegCUjtW6QIrW5NjA3QZC4t 3CY7pkIcGK5vh9syVTLIsMPUOYLoQABfrD32ohO1fJ/hB0YSJ5nFXPn1Px1cJh5myfIu sZoR4ArV4HFh/2FW/sytbM2JerdPnMa64SiRI=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=JvIyuJ8Eocx9hAx5nlzk/W5k3AhCohQkojRhTIDNdYU=; b=dL0ExrfBuOpmQr6FOsXoQf04VgGmSxHVUNcvqRroVz9S7qprxf6zbDgwzU7MRfxtwn q4WRCp49LyX2yWW6XPrKAoMz6kF/0vxIuH5Sl7hRfSmJ7VBz2O2pByQXcAUPgvd0r54g vseCOyH43wZU2g/naoVP5wmc0720qO3kCWK4v5yTo1MJVVyTKmeMLnqFQHTL5Hc9pBNf OSksohBhEwCuMhYv4AOr2tDVH0qP1FFTkcAlwSbq3xecDYMOY/G/smAhe5Ddyqe4Vi0y LiiEIDwStmAv3AoRRW4oRhLI8p1zNqcDpA3J88rEQPCE7aneGSbTcWu5GTso86sZmVh4 Xmuw==
X-Gm-Message-State: ALoCoQnZyB8yszGswlwi6FAmhA/MT8sI6emFLwqxgyoKbQTAyLEE0EThnYZ+67Uj7YhhR+OUu9A6ESbXYYqYjkQpePSENMym5rGI5sPAfsO9AltP7/8gstpXqsyTYxQUJnneUrlL8azuUa+qhlqo7oQaziRKxsqKanNWC3m8bMlWoHwmC+DQMpKLLS0UJlQ55JCsWP5tzNDB
MIME-Version: 1.0
X-Received: by 10.49.25.109 with SMTP id b13mr39916761qeg.3.1386647048647; Mon, 09 Dec 2013 19:44:08 -0800 (PST)
Sender: yhirano@google.com
Received: by 10.140.39.133 with HTTP; Mon, 9 Dec 2013 19:44:08 -0800 (PST)
In-Reply-To: <CAG4zZZBtjyFXMWthh3XwDaOBxc94GTBsFjXqS7=y-_1+913FKA@mail.gmail.com>
References: <CABihn6ErtW-ewspJ9LAVU-kpf9iJuPhbap+0KjSqfZFgWCy+nw@mail.gmail.com> <CAG4zZZBtjyFXMWthh3XwDaOBxc94GTBsFjXqS7=y-_1+913FKA@mail.gmail.com>
Date: Tue, 10 Dec 2013 12:44:08 +0900
X-Google-Sender-Auth: BQt58TWAxwiWDFGaMQwVyejOf_E
Message-ID: <CABihn6EYJ5BbMsCHsatmHbLxdqEfR7CBRGU4tEHZHUbQD1z-Jg@mail.gmail.com>
From: Yutaka Hirano <yhirano@chromium.org>
To: Joakim Erdfelt <joakim@intalio.com>
Content-Type: multipart/alternative; boundary=047d7b677f1ec385b704ed25ecb7
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] was_clean and _Fail the WebSocket connection_
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.15
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: Tue, 10 Dec 2013 03:44:16 -0000

--047d7b677f1ec385b704ed25ecb7
Content-Type: text/plain; charset=ISO-8859-1

The WebSocket API spec[1] says:
  If the user agent was required to fail the WebSocket connection, or if
the the WebSocket connection was closed after being flagged as full, fire a
simple event named error at the WebSocket object.

and I'm wondering if I can fire an error event when receiving a masked
frame (as a client).
Is it OK to fire an error event for a non-failure protocol error?

Thanks,

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/network.html


On Mon, Dec 9, 2013 at 10:44 PM, Joakim Erdfelt <joakim@intalio.com> wrote:

> For a client receiving a masked frame, that's handled by Section 5.1.
> Overview.
>
>    A server MUST NOT mask any frames that it sends to
>    the client.  A client MUST close a connection if it detects a masked
>    frame.  In this case, it MAY use the status code 1002 (protocol
>    error) as defined in Section 7.4.1.  (These rules might be relaxed in
>    a future specification.)
>
> In Jetty we close the connection on any protocol level error / failure, as
> we can't trust the connection to be sane anymore.
> Especially when Extensions are in use.
>
> Things like (this is the list for incoming frames only):
>
>  * Too large payload on control frames
>  * If an unknown opcode is received
>  * Close frames with payload length of 1
>  * A data frame payload exceeding Integer.MAX_VALUE (this is an arbitrary
> memory sanity check for Jetty, not part of the spec.  only used when
> complete message delivery is expected, vs streaming message delivery.  The
> intSane check)
>  * A data frame payload that will put the complete message size over the
> per-endpoint configuration (part of the javax.websocket spec)
>  * A RSV flag is set, yet no Extension in use is registered for it.
>  * If server received an un-masked frame. (this is in violation of the rfc
> spec, but is a controllable policy configuration)
>  * Client received a masked frame.
>  * If an extension reported an error in processing the incoming frame.
>  * If any IOException occurs during read / parse
>  * If a Binary or Text frame is received without a prior FIN ending the
> prior message.
>  * If a continuation frame is received after a FIN
>  * If a control frame with FIN=false is received
>  * Any memory allocation error for the incoming payload or complete message
>
> (Incidentally, most of these are part of the autobahn websocket protocol
> testsuite)
>
> All of these will cause:
>
>  * Local endpoint onError() notification
>  * Remote endpoint close / harsh (don't wait for close response. aka,
> wasClean=false)
>  * Connection disconnect
>  * Local endpoint onClose() notification (with harsh indicator)
>
>
>
>
> --
> Joakim Erdfelt <joakim@intalio.com>
> webtide.com <http://www.webtide.com/> - intalio.com/jetty
> Expert advice, services and support from from the Jetty & CometD experts
> eclipse.org/jetty - cometd.org
>
>
> On Mon, Dec 9, 2013 at 12:36 AM, Yutaka Hirano <yhirano@chromium.org>wrote:
>
>> Hi,
>>
>> I'm revising WebSocket implementation on Chrome and I have some questions
>> about RFC6455.
>>
>> A: I think a client should _Fail the WebSocket Connection_ when it
>> receives a masked frame
>>     instead of just closing the connection as specified in the spec,
>> given that other protocol errors
>>     such as RSV or opcode errors cause failure. Is that right?
>> B: If A holds, is it possible to say that all client-side unclean
>> connection close are caused by _Fail the
>>  WebSocket Connection_ operation?
>>
>> Thanks,
>>
>>
>> _______________________________________________
>> hybi mailing list
>> hybi@ietf.org
>> https://www.ietf.org/mailman/listinfo/hybi
>>
>>
>

--047d7b677f1ec385b704ed25ecb7
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>The WebSocket API spec[1] says:<br></div><div>=A0 If =
the user agent was required to fail the WebSocket connection, or if the the=
 WebSocket connection was closed after being flagged as full, fire a simple=
 event named error at the WebSocket object.<br>
</div><div><br></div><div>and I&#39;m wondering if I can fire an error even=
t when receiving a masked frame (as a client).</div><div>Is it OK to fire a=
n error event for a non-failure protocol error?</div><div><br></div><div>
Thanks,</div><div><br></div><div>[1]=A0<a href=3D"http://www.whatwg.org/spe=
cs/web-apps/current-work/multipage/network.html">http://www.whatwg.org/spec=
s/web-apps/current-work/multipage/network.html</a><br></div></div><div clas=
s=3D"gmail_extra">
<br><br><div class=3D"gmail_quote">On Mon, Dec 9, 2013 at 10:44 PM, Joakim =
Erdfelt <span dir=3D"ltr">&lt;<a href=3D"mailto:joakim@intalio.com" target=
=3D"_blank">joakim@intalio.com</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex">
<div dir=3D"ltr">For a client receiving a masked frame, that&#39;s handled =
by Section 5.1. Overview.<div><br></div><div><div>=A0 =A0A server MUST NOT =
mask any frames that it sends to</div><div>=A0 =A0the client. =A0A client M=
UST close a connection if it detects a masked</div>

<div>=A0 =A0frame. =A0In this case, it MAY use the status code 1002 (protoc=
ol</div><div>=A0 =A0error) as defined in Section 7.4.1. =A0(These rules mig=
ht be relaxed in</div><div>=A0 =A0a future specification.)</div></div><div>=
<br></div><div>

In Jetty we close the connection on any protocol level error / failure, as =
we can&#39;t trust the connection to be sane anymore.</div><div>Especially =
when Extensions are in use.</div><div><br></div><div>Things like (this is t=
he list for incoming frames only):</div>

<div><br></div><div>=A0* Too large payload on control frames</div><div>=A0*=
 If an unknown opcode is received</div><div>=A0* Close frames with payload =
length of 1</div><div>=A0* A data frame payload exceeding Integer.MAX_VALUE=
 (this is an arbitrary memory sanity check for Jetty, not part of the spec.=
 =A0only used when complete message delivery is expected, vs streaming mess=
age delivery. =A0The intSane check)</div>

<div>=A0* A data frame payload that will put the complete message size over=
 the per-endpoint configuration (part of the javax.websocket spec)</div><di=
v>=A0* A RSV flag is set, yet no Extension in use is registered for it.</di=
v>

<div>=A0* If server received an un-masked frame. (this is in violation of t=
he rfc spec, but is a controllable policy configuration)</div><div>=A0* Cli=
ent received a masked frame.</div><div>=A0* If an extension reported an err=
or in processing the incoming frame.</div>

<div>=A0* If any IOException occurs during read / parse</div><div>=A0* If a=
 Binary or Text frame is received without a prior FIN ending the prior mess=
age.</div><div>=A0* If a continuation frame is received after a FIN</div><d=
iv>

=A0* If a control frame with FIN=3Dfalse is received</div><div>=A0* Any mem=
ory allocation error for the incoming payload or complete message</div><div=
><br></div><div>(Incidentally, most of these are part of the autobahn webso=
cket protocol testsuite)</div>

<div><br></div><div>All of these will cause:</div><div><br></div><div>=A0* =
Local endpoint onError() notification</div><div>=A0* Remote endpoint close =
/ harsh (don&#39;t wait for close response. aka, wasClean=3Dfalse)</div><di=
v>

=A0* Connection disconnect</div><div>=A0* Local endpoint onClose() notifica=
tion (with harsh indicator)</div><div><br></div><div><br></div><div><br></d=
iv></div><div class=3D"gmail_extra"><br clear=3D"all"><div><div dir=3D"ltr"=
><div>

--</div><div>Joakim Erdfelt &lt;<a href=3D"mailto:joakim@intalio.com" targe=
t=3D"_blank">joakim@intalio.com</a>&gt;</div><div><a href=3D"http://www.web=
tide.com/" target=3D"_blank">webtide.com</a>=A0- <a href=3D"http://intalio.=
com/jetty" target=3D"_blank">intalio.com/jetty</a></div>

<div><span>Expert advice, services and support from=A0</span><span>from the=
 Jetty &amp; CometD experts</span></div><div><a href=3D"http://eclipse.org/=
jetty/" target=3D"_blank">eclipse.org/jetty</a>=A0-=A0<a href=3D"http://com=
etd.org/" target=3D"_blank">cometd.org</a></div>

</div></div>
<br><br><div class=3D"gmail_quote"><div><div class=3D"h5">On Mon, Dec 9, 20=
13 at 12:36 AM, Yutaka Hirano <span dir=3D"ltr">&lt;<a href=3D"mailto:yhira=
no@chromium.org" target=3D"_blank">yhirano@chromium.org</a>&gt;</span> wrot=
e:<br>
</div></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
rder-left:1px #ccc solid;padding-left:1ex"><div><div class=3D"h5">
<div dir=3D"ltr">Hi,<div><br></div><div>I&#39;m revising WebSocket implemen=
tation on Chrome and I have some questions about RFC6455.</div><div><br></d=
iv><div>A: I think a client should _Fail the WebSocket Connection_=A0when i=
t receives a masked frame</div>


<div>=A0 =A0 instead of just closing the connection as specified in the spe=
c, given that other protocol errors</div><div>=A0 =A0 such as RSV or opcode=
 errors cause failure. Is that right?</div><div><span style=3D"white-space:=
pre-wrap">B: If A holds, is it possible to say that all client-side unclean=
 connection close are caused by _Fail the</span></div>



<div><span style=3D"white-space:pre-wrap">     WebSocket Connection_ operat=
ion?</span></div><div><span style=3D"white-space:pre-wrap"><br></span></div=
><div><span style=3D"white-space:pre-wrap">Thanks,</span></div>
<div><span style=3D"white-space:pre-wrap"><br></span></div></div>
<br></div></div>_______________________________________________<br>
hybi mailing list<br>
<a href=3D"mailto:hybi@ietf.org" target=3D"_blank">hybi@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/hybi" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/hybi</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>

--047d7b677f1ec385b704ed25ecb7--

From webmaster@zaphoyd.com  Fri Dec 27 07:47:00 2013
Return-Path: <webmaster@zaphoyd.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7450B1ADF69 for <hybi@ietfa.amsl.com>; Fri, 27 Dec 2013 07:47:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.8
X-Spam-Level: 
X-Spam-Status: No, score=0.8 tagged_above=-999 required=5 tests=[BAYES_50=0.8] autolearn=ham
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 iuBHUbRr2paj for <hybi@ietfa.amsl.com>; Fri, 27 Dec 2013 07:46:58 -0800 (PST)
Received: from leaf103.mfilter.dimenoc.com (tree.mfilter.dimenoc.com [72.29.89.3]) by ietfa.amsl.com (Postfix) with ESMTP id A97421AE20E for <hybi@ietf.org>; Fri, 27 Dec 2013 07:46:58 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by leaf103.mfilter.dimenoc.com (Postfix) with ESMTP id 8149B1CDB84 for <hybi@ietf.org>; Fri, 27 Dec 2013 10:46:53 -0500 (EST)
X-Virus-Scanned: amavisd-new at leaf.mfilter.dimenoc.com
Received: from leaf103.mfilter.dimenoc.com ([IPv6:::ffff:127.0.0.1]) by localhost (leaf103.mfilter.dimenoc.com [IPv6:::ffff:127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eKv4jWLxiS1i for <hybi@ietf.org>; Fri, 27 Dec 2013 10:46:52 -0500 (EST)
Received: from sh78.surpasshosting.com (sh78.surpasshosting.com [72.29.64.142]) by leaf103.mfilter.dimenoc.com (Postfix) with ESMTP for <hybi@ietf.org>; Fri, 27 Dec 2013 10:46:52 -0500 (EST)
Received: from cpe-72-135-248-6.wi.res.rr.com ([72.135.248.6]:38090 helo=[192.168.1.7]) by sh78.surpasshosting.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80.1) (envelope-from <webmaster@zaphoyd.com>) id 1VwZcg-00080u-Oh for hybi@ietf.org; Fri, 27 Dec 2013 10:46:51 -0500
From: Peter Thorson <webmaster@zaphoyd.com>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
Message-Id: <DC5D7086-B93B-4880-A202-BD0EEA89240B@zaphoyd.com>
Date: Fri, 27 Dec 2013 09:46:50 -0600
To: hybi@ietf.org
Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\))
X-Mailer: Apple Mail (2.1827)
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - sh78.surpasshosting.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - zaphoyd.com
X-Get-Message-Sender-Via: sh78.surpasshosting.com: authenticated_id: webmaster@zaphoyd.com
X-Source: 
X-Source-Args: 
X-Source-Dir: 
Subject: [hybi] Client behavior with blank server Sec-WebSocket-Protocol header
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.15
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: Fri, 27 Dec 2013 15:47:00 -0000

I have a question about the interpretation of RFC6455 with respect to =
client subprotocol negotiation. Specifically when a client sends a =
Sec-WebSocket-Protocol header requesting one or more subprotocols and =
the server does not support any of them The use case here would be a =
WebSocket application that wants to use a subprotocol if the server =
supports it but fall back to the default =93no protocol=94 otherwise.

RFC6455 states:
	 =20
> Either a single value representing the subprotocol the server
> is ready to use or null.  The value chosen MUST be derived
> from the client's handshake, specifically by selecting one of
> the values from the |Sec-WebSocket-Protocol| field that the
> server is willing to use for this connection (if any).  If the
> client's handshake did not contain such a header field or if
> the server does not agree to any of the client's requested
> subprotocols, the only acceptable value is null.  The absence
> of such a field is equivalent to the null value (meaning that
> if the server does not wish to agree to one of the suggested
> subprotocols, it MUST NOT send back a |Sec-WebSocket-Protocol|
> header field in its response).  The empty string is not the
> same as the null value for these purposes and is not a legal
> value for this field.  The ABNF for the value of this header
> field is (token), where the definitions of constructs and
> rules are as given in [RFC2616].

Which seems to indicate that returning no Sec-WebSocket-Protocol header =
at all is the only correct response for a server.

This has come up as an issue because a number of my library users noted =
a change between chrome 29 and 31 such that v29 (and all other browsers) =
succeed when this situation happens and set the protocol value of the =
WebSocket object to blank (as if there had been no subprotocol =
negotiation). Chrome 31 fails the handshake.

Question for the group: What is the correct behavior for a client here?

1. As a client library author, is this situation a protocol error that =
my browser/library should enforce or is this a situation where the end =
user application should check the protocol value returned by the =
browser/library to determine if they want to continue?
2. If the latter, is the former behavior compliant with the spec?
3. If yes to #2, this seems to imply that an application cannot reliably =
implement test a subprotocol and fall back to null. Does that sound =
right?

Question for any chrome devs here: I=92ve looked through all of the SVN =
logs between chrome 29 and current stable and can=92t find anything that =
would obviously indicate that a change was made. Do you have any more =
information on where or why this change was made?=

From joakim@intalio.com  Fri Dec 27 08:39:29 2013
Return-Path: <joakim@intalio.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0C60E1AE207 for <hybi@ietfa.amsl.com>; Fri, 27 Dec 2013 08:39:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.078
X-Spam-Level: 
X-Spam-Status: No, score=-0.078 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
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 vYFvId0C30L7 for <hybi@ietfa.amsl.com>; Fri, 27 Dec 2013 08:39:25 -0800 (PST)
Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by ietfa.amsl.com (Postfix) with ESMTP id 9D3051ADF60 for <hybi@ietf.org>; Fri, 27 Dec 2013 08:39:25 -0800 (PST)
Received: by mail-wi0-f175.google.com with SMTP id hi5so14466135wib.14 for <hybi@ietf.org>; Fri, 27 Dec 2013 08:39:20 -0800 (PST)
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:date :message-id:subject:from:to:cc:content-type; bh=1T420NtfDqXUI+oz8u1XxPOMPa57VRoKJMBnUswDpLs=; b=ffv1SieTnNjwrPmp144n0dqf9CfMiuIIGpHmAJM8dU1fpHWMpevAZdrgqjlUEscsQD MH38bqTx+6nRz9iAjs/ZJU9RjSHyb13iNpoChGBpzc75zZeq0iFhBUyi32OX9hh+gEx6 V1w8vxdIwhId4wgSMRQwr8oj5BuDaqwX+HluwXI7svJ8a9a/rf1KSnYNY8flbPLlHd2D EGblLvbBkxRR1VuS3pioKj6yecStdgYEf11t9N6xa3Lbfz5BxAN/a5kFrg6DhOkPZN9l K6QcxrXa9A5QXkyyPYFEi9LzJ/UVkg9ifcuByCu5YoYh+6AKtvxCUUFvVWsyUHzgJOtZ R9Qg==
X-Gm-Message-State: ALoCoQkE6mrZcIpjcCdinh1+W/maA7l7nn84p6e/ky19zhGl5QwlAPdfRfY8GG24S1SWwgwM01Xc
MIME-Version: 1.0
X-Received: by 10.194.189.42 with SMTP id gf10mr35131092wjc.24.1388162360381;  Fri, 27 Dec 2013 08:39:20 -0800 (PST)
Received: by 10.14.208.131 with HTTP; Fri, 27 Dec 2013 08:39:20 -0800 (PST)
In-Reply-To: <DC5D7086-B93B-4880-A202-BD0EEA89240B@zaphoyd.com>
References: <DC5D7086-B93B-4880-A202-BD0EEA89240B@zaphoyd.com>
Date: Fri, 27 Dec 2013 09:39:20 -0700
Message-ID: <CAG4zZZBuOX7U_JN5W-PQCzMwNr09be9=+T2vYkcW=_k9p18XvQ@mail.gmail.com>
From: Joakim Erdfelt <joakim@intalio.com>
To: Peter Thorson <webmaster@zaphoyd.com>
Content-Type: multipart/alternative; boundary=047d7bb04bd261a65904ee86bc09
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Client behavior with blank server Sec-WebSocket-Protocol header
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.15
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: Fri, 27 Dec 2013 16:39:29 -0000

--047d7bb04bd261a65904ee86bc09
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

I think the spec allows for an non-response on the Sec-WebSocket-Protocol,
however Chrome 31, 32 (release soon), 33 (canary), and 34 (canary) all fail
this condition.

>From a javax.websocket (JSR-356 / Default websocket in Java) point of view,
a non-match on the sub-protocol that the client declares to what the server
response has would result in a forcibly failed client connection. (this is
because endpoints are bound to a path spec + a subprotocol)

>From a Jetty point of view, the client connection would still occur, the
client endpoint, would connect, but it can choose to access the subprotocol
for its own purposes.

A quick autobahn server test, it returns no Sec-WebSocket-Protocol if there
is no match.
A quick autobahn client test, the connection still occurs on no match.

Firefox 26 connects on no match too.
Tomcat 8(beta) client connects on no match as well.
Grizzly client connects on no match too.

Haven't tested any others.


--
Joakim Erdfelt <joakim@intalio.com>
webtide.com <http://www.webtide.com/> - intalio.com/jetty
Expert advice, services and support from from the Jetty & CometD experts
eclipse.org/jetty - cometd.org


On Fri, Dec 27, 2013 at 8:46 AM, Peter Thorson <webmaster@zaphoyd.com>wrote=
:

> I have a question about the interpretation of RFC6455 with respect to
> client subprotocol negotiation. Specifically when a client sends a
> Sec-WebSocket-Protocol header requesting one or more subprotocols and the
> server does not support any of them The use case here would be a WebSocke=
t
> application that wants to use a subprotocol if the server supports it but
> fall back to the default =93no protocol=94 otherwise.
>
> RFC6455 states:
>
> > Either a single value representing the subprotocol the server
> > is ready to use or null.  The value chosen MUST be derived
> > from the client's handshake, specifically by selecting one of
> > the values from the |Sec-WebSocket-Protocol| field that the
> > server is willing to use for this connection (if any).  If the
> > client's handshake did not contain such a header field or if
> > the server does not agree to any of the client's requested
> > subprotocols, the only acceptable value is null.  The absence
> > of such a field is equivalent to the null value (meaning that
> > if the server does not wish to agree to one of the suggested
> > subprotocols, it MUST NOT send back a |Sec-WebSocket-Protocol|
> > header field in its response).  The empty string is not the
> > same as the null value for these purposes and is not a legal
> > value for this field.  The ABNF for the value of this header
> > field is (token), where the definitions of constructs and
> > rules are as given in [RFC2616].
>
> Which seems to indicate that returning no Sec-WebSocket-Protocol header a=
t
> all is the only correct response for a server.
>
> This has come up as an issue because a number of my library users noted a
> change between chrome 29 and 31 such that v29 (and all other browsers)
> succeed when this situation happens and set the protocol value of the
> WebSocket object to blank (as if there had been no subprotocol
> negotiation). Chrome 31 fails the handshake.
>
> Question for the group: What is the correct behavior for a client here?
>
> 1. As a client library author, is this situation a protocol error that my
> browser/library should enforce or is this a situation where the end user
> application should check the protocol value returned by the browser/libra=
ry
> to determine if they want to continue?
> 2. If the latter, is the former behavior compliant with the spec?
> 3. If yes to #2, this seems to imply that an application cannot reliably
> implement test a subprotocol and fall back to null. Does that sound right=
?
>
> Question for any chrome devs here: I=92ve looked through all of the SVN l=
ogs
> between chrome 29 and current stable and can=92t find anything that would
> obviously indicate that a change was made. Do you have any more informati=
on
> on where or why this change was made?
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>

--047d7bb04bd261a65904ee86bc09
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I think the spec allows for an non-response on the Se=
c-WebSocket-Protocol, however Chrome 31, 32 (release soon), 33 (canary), an=
d 34 (canary) all fail this condition.</div><div><br></div><div>From a java=
x.websocket (JSR-356 / Default websocket in Java) point of view, a non-matc=
h on the sub-protocol that the client declares to what the server response =
has would result in a forcibly failed client connection. (this is because e=
ndpoints are bound to a path spec + a subprotocol)</div>
<div><br></div><div>From a Jetty point of view, the client connection would=
 still occur, the client endpoint, would connect, but it can choose to acce=
ss the subprotocol for its own purposes.</div><div><br></div><div>A quick a=
utobahn server test, it returns no Sec-WebSocket-Protocol if there is no ma=
tch.</div>
<div>A quick autobahn client test, the connection still occurs on no match.=
</div><div><br></div><div>Firefox 26 connects on no match too.</div><div>To=
mcat 8(beta) client connects on no match as well.</div><div>Grizzly client =
connects on no match too.</div>
<div><br></div><div>Haven&#39;t tested any others.</div><div><br></div></di=
v><div class=3D"gmail_extra"><br clear=3D"all"><div><div dir=3D"ltr"><div>-=
-</div><div>Joakim Erdfelt &lt;<a href=3D"mailto:joakim@intalio.com" target=
=3D"_blank">joakim@intalio.com</a>&gt;</div>
<div><a href=3D"http://www.webtide.com/" target=3D"_blank">webtide.com</a>=
=A0- <a href=3D"http://intalio.com/jetty" target=3D"_blank">intalio.com/jet=
ty</a></div><div><span>Expert advice, services and support from=A0</span><s=
pan>from the Jetty &amp; CometD experts</span></div>
<div><a href=3D"http://eclipse.org/jetty/" target=3D"_blank">eclipse.org/je=
tty</a>=A0-=A0<a href=3D"http://cometd.org/" target=3D"_blank">cometd.org</=
a></div></div></div>
<br><br><div class=3D"gmail_quote">On Fri, Dec 27, 2013 at 8:46 AM, Peter T=
horson <span dir=3D"ltr">&lt;<a href=3D"mailto:webmaster@zaphoyd.com" targe=
t=3D"_blank">webmaster@zaphoyd.com</a>&gt;</span> wrote:<br><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pa=
dding-left:1ex">
I have a question about the interpretation of RFC6455 with respect to clien=
t subprotocol negotiation. Specifically when a client sends a Sec-WebSocket=
-Protocol header requesting one or more subprotocols and the server does no=
t support any of them The use case here would be a WebSocket application th=
at wants to use a subprotocol if the server supports it but fall back to th=
e default =93no protocol=94 otherwise.<br>

<br>
RFC6455 states:<br>
<br>
&gt; Either a single value representing the subprotocol the server<br>
&gt; is ready to use or null. =A0The value chosen MUST be derived<br>
&gt; from the client&#39;s handshake, specifically by selecting one of<br>
&gt; the values from the |Sec-WebSocket-Protocol| field that the<br>
&gt; server is willing to use for this connection (if any). =A0If the<br>
&gt; client&#39;s handshake did not contain such a header field or if<br>
&gt; the server does not agree to any of the client&#39;s requested<br>
&gt; subprotocols, the only acceptable value is null. =A0The absence<br>
&gt; of such a field is equivalent to the null value (meaning that<br>
&gt; if the server does not wish to agree to one of the suggested<br>
&gt; subprotocols, it MUST NOT send back a |Sec-WebSocket-Protocol|<br>
&gt; header field in its response). =A0The empty string is not the<br>
&gt; same as the null value for these purposes and is not a legal<br>
&gt; value for this field. =A0The ABNF for the value of this header<br>
&gt; field is (token), where the definitions of constructs and<br>
&gt; rules are as given in [RFC2616].<br>
<br>
Which seems to indicate that returning no Sec-WebSocket-Protocol header at =
all is the only correct response for a server.<br>
<br>
This has come up as an issue because a number of my library users noted a c=
hange between chrome 29 and 31 such that v29 (and all other browsers) succe=
ed when this situation happens and set the protocol value of the WebSocket =
object to blank (as if there had been no subprotocol negotiation). Chrome 3=
1 fails the handshake.<br>

<br>
Question for the group: What is the correct behavior for a client here?<br>
<br>
1. As a client library author, is this situation a protocol error that my b=
rowser/library should enforce or is this a situation where the end user app=
lication should check the protocol value returned by the browser/library to=
 determine if they want to continue?<br>

2. If the latter, is the former behavior compliant with the spec?<br>
3. If yes to #2, this seems to imply that an application cannot reliably im=
plement test a subprotocol and fall back to null. Does that sound right?<br=
>
<br>
Question for any chrome devs here: I=92ve looked through all of the SVN log=
s between chrome 29 and current stable and can=92t find anything that would=
 obviously indicate that a change was made. Do you have any more informatio=
n on where or why this change was made?<br>

_______________________________________________<br>
hybi mailing list<br>
<a href=3D"mailto:hybi@ietf.org">hybi@ietf.org</a><br>
<a href=3D"https://www.ietf.org/mailman/listinfo/hybi" target=3D"_blank">ht=
tps://www.ietf.org/mailman/listinfo/hybi</a><br>
</blockquote></div><br></div>

--047d7bb04bd261a65904ee86bc09--

From godjonez@codepad.info  Fri Dec 27 08:52:52 2013
Return-Path: <godjonez@codepad.info>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AF1E71AE207 for <hybi@ietfa.amsl.com>; Fri, 27 Dec 2013 08:52:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.001
X-Spam-Level: 
X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham
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 NkuZcc3e9EeT for <hybi@ietfa.amsl.com>; Fri, 27 Dec 2013 08:52:50 -0800 (PST)
Received: from smtpout.kotinet.com (smtpout.kotinet.com [212.50.215.77]) by ietfa.amsl.com (Postfix) with ESMTP id 16F901ADF79 for <hybi@ietf.org>; Fri, 27 Dec 2013 08:52:50 -0800 (PST)
Received: from codepad.info (codepad.info [62.240.71.135]) by smtpout.kotinet.com (Postfix) with ESMTP id DC935E09A4 for <hybi@ietf.org>; Fri, 27 Dec 2013 18:52:44 +0200 (EET)
Received: from potato (85-76-72-240-nat.elisa-mobile.fi [85.76.72.240]) by codepad.info (Postfix) with ESMTPSA id C97C8640AFB for <hybi@ietf.org>; Fri, 27 Dec 2013 18:52:43 +0200 (EET)
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
To: hybi@ietf.org
References: <DC5D7086-B93B-4880-A202-BD0EEA89240B@zaphoyd.com>
Date: Fri, 27 Dec 2013 18:52:40 +0200
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: "Joonas Lehtolahti" <godjonez@codepad.info>
Message-ID: <op.w8rft2xyuykfxw@potato>
In-Reply-To: <DC5D7086-B93B-4880-A202-BD0EEA89240B@zaphoyd.com>
User-Agent: Opera Mail/12.16 (Win64)
Subject: Re: [hybi] Client behavior with blank server Sec-WebSocket-Protocol header
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.15
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: Fri, 27 Dec 2013 16:52:52 -0000

On Fri, 27 Dec 2013 17:46:50 +0200, Peter Thorson <webmaster@zaphoyd.com>  
wrote:

> This has come up as an issue because a number of my library users noted  
> a change between chrome 29 and 31 such that v29 (and all other browsers)  
> succeed when this situation happens and set the protocol value of the  
> WebSocket object to blank (as if there had been no subprotocol  
> negotiation). Chrome 31 fails the handshake.
>
> Question for the group: What is the correct behavior for a client here?

In the WebSocket Protocol point of view the client may either continue  
with no negotiated subprotocol, or not accept the situation and close the  
connection. Both are OK.

As for browser/library side you have to keep in mind that the WebSocket  
API for JavaScript is outside the scope of the WebSocket Protocol spec  
this mailing list is for. According to the current version of Editor's  
Draft at http://dev.w3.org/html5/websockets/#feedback-from-the-protocol it  
seems that current Chrome versions are doing the right thing: if the  
server returns null subprotocol but a non-empty list of subprotocols was  
supplied in the request, then the connection is to fail.

Whether that is good behavior or not, the debate on that should be had at  
the discussion forums for WebSocket API, not here. Personally I would like  
the previous behavior that the JavaScript app can determine whether it  
wants to continue with no negotiated subprotocol or close the connection.

I hope this helps.

Cheers,

Joonas Lehtolahti

From webmaster@zaphoyd.com  Fri Dec 27 08:55:01 2013
Return-Path: <webmaster@zaphoyd.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 92F861ADF79 for <hybi@ietfa.amsl.com>; Fri, 27 Dec 2013 08:55:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham
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 CJMWy81ZUV-l for <hybi@ietfa.amsl.com>; Fri, 27 Dec 2013 08:55:00 -0800 (PST)
Received: from leaf103.mfilter.dimenoc.com (tree.mfilter.dimenoc.com [72.29.89.3]) by ietfa.amsl.com (Postfix) with ESMTP id 031831AE235 for <hybi@ietf.org>; Fri, 27 Dec 2013 08:54:59 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by leaf103.mfilter.dimenoc.com (Postfix) with ESMTP id 79A991CD734 for <hybi@ietf.org>; Fri, 27 Dec 2013 11:54:47 -0500 (EST)
X-Virus-Scanned: amavisd-new at leaf.mfilter.dimenoc.com
Received: from leaf103.mfilter.dimenoc.com ([IPv6:::ffff:127.0.0.1]) by localhost (leaf103.mfilter.dimenoc.com [IPv6:::ffff:127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HO0xFmk7LXFy for <hybi@ietf.org>; Fri, 27 Dec 2013 11:54:46 -0500 (EST)
Received: from sh78.surpasshosting.com (sh78.surpasshosting.com [72.29.64.142]) by leaf103.mfilter.dimenoc.com (Postfix) with ESMTP for <hybi@ietf.org>; Fri, 27 Dec 2013 11:54:46 -0500 (EST)
Received: from cpe-72-135-248-6.wi.res.rr.com ([72.135.248.6]:35144 helo=[192.168.1.7]) by sh78.surpasshosting.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80.1) (envelope-from <webmaster@zaphoyd.com>) id 1VwagP-0006Lf-Bu; Fri, 27 Dec 2013 11:54:45 -0500
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\))
From: Peter Thorson <webmaster@zaphoyd.com>
In-Reply-To: <op.w8rft2xyuykfxw@potato>
Date: Fri, 27 Dec 2013 10:54:45 -0600
Content-Transfer-Encoding: quoted-printable
Message-Id: <F765C3D2-B1A9-477A-A2C2-4FDA322F2A19@zaphoyd.com>
References: <DC5D7086-B93B-4880-A202-BD0EEA89240B@zaphoyd.com> <op.w8rft2xyuykfxw@potato>
To: Joonas Lehtolahti <godjonez@codepad.info>
X-Mailer: Apple Mail (2.1827)
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - sh78.surpasshosting.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - zaphoyd.com
X-Get-Message-Sender-Via: sh78.surpasshosting.com: authenticated_id: webmaster@zaphoyd.com
X-Source: 
X-Source-Args: 
X-Source-Dir: 
Cc: hybi@ietf.org
Subject: Re: [hybi] Client behavior with blank server Sec-WebSocket-Protocol header
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.15
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: Fri, 27 Dec 2013 16:55:01 -0000

On Dec 27, 2013, at 10:52 , Joonas Lehtolahti <godjonez@codepad.info> =
wrote:

> On Fri, 27 Dec 2013 17:46:50 +0200, Peter Thorson =
<webmaster@zaphoyd.com> wrote:
>=20
>> This has come up as an issue because a number of my library users =
noted a change between chrome 29 and 31 such that v29 (and all other =
browsers) succeed when this situation happens and set the protocol value =
of the WebSocket object to blank (as if there had been no subprotocol =
negotiation). Chrome 31 fails the handshake.
>>=20
>> Question for the group: What is the correct behavior for a client =
here?
>=20
> In the WebSocket Protocol point of view the client may either continue =
with no negotiated subprotocol, or not accept the situation and close =
the connection. Both are OK.
>=20
> As for browser/library side you have to keep in mind that the =
WebSocket API for JavaScript is outside the scope of the WebSocket =
Protocol spec this mailing list is for. According to the current version =
of Editor's Draft at =
http://dev.w3.org/html5/websockets/#feedback-from-the-protocol it seems =
that current Chrome versions are doing the right thing: if the server =
returns null subprotocol but a non-empty list of subprotocols was =
supplied in the request, then the connection is to fail.
>=20
> Whether that is good behavior or not, the debate on that should be had =
at the discussion forums for WebSocket API, not here. Personally I would =
like the previous behavior that the JavaScript app can determine whether =
it wants to continue with no negotiated subprotocol or close the =
connection.
>=20
> I hope this helps.
>=20
> Cheers,
>=20
> Joonas Lehtolahti

OK that is what I wanted to confirm. Thanks.=

From tobias.oberstein@tavendo.de  Sat Dec 28 03:23:53 2013
Return-Path: <tobias.oberstein@tavendo.de>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7F10C1AF6B0 for <hybi@ietfa.amsl.com>; Sat, 28 Dec 2013 03:23:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.8
X-Spam-Level: 
X-Spam-Status: No, score=0.8 tagged_above=-999 required=5 tests=[BAYES_50=0.8,  RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham
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 Ae3IXugNni8d for <hybi@ietfa.amsl.com>; Sat, 28 Dec 2013 03:23:52 -0800 (PST)
Received: from EXHUB020-2.exch020.serverdata.net (exhub020-2.exch020.serverdata.net [206.225.164.29]) by ietfa.amsl.com (Postfix) with ESMTP id D7C7B1AF6AF for <hybi@ietf.org>; Sat, 28 Dec 2013 03:23:51 -0800 (PST)
Received: from EXVMBX020-12.exch020.serverdata.net ([169.254.3.11]) by EXHUB020-2.exch020.serverdata.net ([206.225.164.29]) with mapi; Sat, 28 Dec 2013 03:23:46 -0800
From: Tobias Oberstein <tobias.oberstein@tavendo.de>
To: Joakim Erdfelt <joakim@intalio.com>, Peter Thorson <webmaster@zaphoyd.com>
Date: Sat, 28 Dec 2013 03:23:37 -0800
Thread-Topic: [hybi] Client behavior with blank server Sec-WebSocket-Protocol	header
Thread-Index: Ac8DIjdh9LrJNmFiSx+Q+eKCf0GpBwAmZ3Bw
Message-ID: <634914A010D0B943A035D226786325D4446BBDA3EC@EXVMBX020-12.exch020.serverdata.net>
References: <DC5D7086-B93B-4880-A202-BD0EEA89240B@zaphoyd.com> <CAG4zZZBuOX7U_JN5W-PQCzMwNr09be9=+T2vYkcW=_k9p18XvQ@mail.gmail.com>
In-Reply-To: <CAG4zZZBuOX7U_JN5W-PQCzMwNr09be9=+T2vYkcW=_k9p18XvQ@mail.gmail.com>
Accept-Language: de-DE, en-US
Content-Language: de-DE
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: de-DE, en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Client behavior with blank server Sec-WebSocket-Protocol	header
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.15
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: Sat, 28 Dec 2013 11:23:53 -0000

>A quick autobahn server test, it returns no Sec-WebSocket-Protocol if ther=
e is no match.
>A quick autobahn client test, the connection still occurs on no match.

Yes, this is the default behavior of Autobahn: if the server does not speak=
 any of the subprotocols announced
by the client, the server won't return a Sec-WebSocket-Protocol header at a=
ll.

And the client will only automatically fail the handshake if the server _di=
d_ return a Sec-WebSocket-Protocol
_and_ the header value is different from any of the subprotocols initially =
announced.

This behavior can be tuned using the onConnect() hooks on server and client=
 side.

The default behavior is designed to follow the spec:

"
   6.  If the response includes a |Sec-WebSocket-Protocol| header field
       and this header field indicates the use of a subprotocol that was
       not present in the client's handshake (the server has indicated a
       subprotocol not requested by the client), the client MUST _Fail
       the WebSocket Connection_.
"

/Tobias
