
From ricea@google.com  Wed Aug 14 21:49:18 2013
Return-Path: <ricea@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 D9ECF11E8108 for <hybi@ietfa.amsl.com>; Wed, 14 Aug 2013 21:49:18 -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 m9hBC90JHYgs for <hybi@ietfa.amsl.com>; Wed, 14 Aug 2013 21:49:18 -0700 (PDT)
Received: from mail-ob0-x22a.google.com (mail-ob0-x22a.google.com [IPv6:2607:f8b0:4003:c01::22a]) by ietfa.amsl.com (Postfix) with ESMTP id 2815411E8112 for <hybi@ietf.org>; Wed, 14 Aug 2013 21:49:17 -0700 (PDT)
Received: by mail-ob0-f170.google.com with SMTP id eh20so352527obb.15 for <hybi@ietf.org>; Wed, 14 Aug 2013 21:49:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=WiaCIzPjsLlQq72Z0FjScq03lhtcvMDuNxGniqfE1U4=; b=Omjg5+P75hQcMQ8LJqjnWEc+/9+/df73wKwmrMb55MIqelpDsor3/2NqGgjrBomZKb 3veR0GFl3xAkWNGdecS+ptvlPesu4sSZMWkqV+wlkrjgx6Oja9WYhZ3xn4UrM4L/xML2 zPPW2FcsW59hk5H+HtOemXa0QJ9qaSCHOGuw2D2+IZQvbqaKXZhlGsyDKawR4bXndY3x eGQWwxEnESBUaccVYXrOHZbWbtj73V9Sv75Xssx+6+8RS3siR9NmQLn2yjMB3lgZN2Uy gfX4ptvvauvIQGPFYPslm4pmRVQMKKsO56XaKj0MM3K3zhuQU9E3CP5tSMnxh1ac9VaB BDFw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=WiaCIzPjsLlQq72Z0FjScq03lhtcvMDuNxGniqfE1U4=; b=pTQNoXkmFZuOW1Bmgd4ighV/8Fy3Ax5sKOZ5v0n2/cPfzh7t//4PTLiQzjgK6E/ebq bR7PDRimPVKImGx6OZiJd8p/hU6hWi7JWVjOeuC9ThudsvC271774L4RfCH6hem7X4H9 aGZFQVAJkUSER73k5gXDPuLhlDhQcEI06H2yAbRaJZVRvlCS95n1h8OjR0knRlP6WIOd CYYNoG71U6D0ZdbVMS+jYzh/iRv/CwRNPA2zKThvVRHJal7A6uKzRolXjBcaJOmuvjys kLA9kh4/h0JmGhJS4R19Ipn6kkvWxR+bxqfRXpvfx0Jud3TUghhlfjH47wtdKObl4kLc rWeQ==
X-Gm-Message-State: ALoCoQlLn4oXX4CFXj0ZRoj7Ar8Ou3L5PnP6cDJc13iHmAZhcVgV4odWt3xcBqKknOSAkybzCqL9FH8pGWb2D/pGck7fYppQwEjA0Aj8jK42rIuwX9Yltax9m8dH4BCAfncIIC7i847Q9YDag4OHHyE1BwW9FZrsWqaDQ9WrXwep9FJqQn5B3fYEsZaL9KutfK/POmqP5QOH
MIME-Version: 1.0
X-Received: by 10.60.94.108 with SMTP id db12mr27031oeb.81.1376542157104; Wed, 14 Aug 2013 21:49:17 -0700 (PDT)
Received: by 10.182.237.1 with HTTP; Wed, 14 Aug 2013 21:49:17 -0700 (PDT)
Date: Thu, 15 Aug 2013 13:49:17 +0900
Message-ID: <CAHixhFp0Ui+qDrKLRXWdwOhx0LX10B_1yvEztw-HB4WgRymveA@mail.gmail.com>
From: Adam Rice <ricea@google.com>
To: "hybi@ietf.org" <hybi@ietf.org>
Content-Type: multipart/alternative; boundary=089e01228aee4b0fc004e3f53287
Subject: [hybi] Treatment of invalid close status codes by browser
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, 15 Aug 2013 04:49:19 -0000

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

I was interested in the handling of invalid status codes sent by the server
to the browser, so I did some investigation. I am posting my results here
in case anyone finds them useful.

My methodology was simple: I used a pywebsocket server configured to
respond to any message by closing the connection with the status code in
the payload of the message, and then manually tested a range of browsers.
All tested browsers were on Windows 7, except for Mac Safari.

The behaviour for status codes blocked by the browser was consistent across
all browsers: they reported status code 1006 with an empty reason string to
Javascript.

Firefox and Mac Safari block no status codes at all. Chrome and Opera block
codes 1005 (no status code provided) and 1015 (TLS error). IE also blocks
these codes, and also blocks codes <1000 and between 1015 and 1999
inclusive. No tested browser blocks any status code >=2000, up to and
including 65535. All tested browsers correctly treat status codes as
unsigned.

I have included a table summarising my results below. If it appears mangled
in your email client, you can view it at
https://docs.google.com/a/chromium.org/spreadsheet/pub?key=0AuDUFVM2fijadEJETlozbDZ1a2FldnFwZEYybzhZMGc

Thanks,
Adam Rice

BrowserVersion testedCode on network09991005100610151999499965535Chrome
27.0.1453.116
Javascript CloseEvent.code
09991006100610061999499965535Firefox2209991005100610151999499965535IE
10.0.9200.16618100610061006100610061006499965535Opera15.0.1147.13009991006
100610061999499965535Safari5.1.7 (7534.57.2)Not availableSafari (Mac)6.0.5
(8536.30.1)09991005100610151999499965535

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

<div dir=3D"ltr">I was interested in the handling of invalid status codes s=
ent by the server to the browser, so I did some investigation. I am posting=
 my results here in case anyone finds them useful.<div><br></div><div>My me=
thodology was simple: I used a pywebsocket server configured to respond to =
any message by closing the connection with the status code in the payload o=
f the message, and then manually tested a range of browsers. All tested bro=
wsers were on Windows 7, except for Mac Safari.</div>
<div><br></div><div>The behaviour for status codes blocked by the browser w=
as consistent across all browsers: they reported status code 1006 with an e=
mpty reason string to Javascript.</div><div><br></div><div>Firefox and Mac =
Safari block no status codes at all. Chrome and Opera block codes 1005 (no =
status code provided) and 1015 (TLS error). IE also blocks these codes, and=
 also blocks codes &lt;1000 and between 1015 and 1999 inclusive. No tested =
browser blocks any status code &gt;=3D2000, up to and including 65535. All =
tested browsers correctly treat status codes as unsigned.</div>
<div><br></div><div>I have included a table summarising my results below. I=
f it appears mangled in your email client, you can view it at=A0<a href=3D"=
https://docs.google.com/a/chromium.org/spreadsheet/pub?key=3D0AuDUFVM2fijad=
EJETlozbDZ1a2FldnFwZEYybzhZMGc" class=3D"cremed">https://docs.google.com/a/=
chromium.org/spreadsheet/pub?key=3D0AuDUFVM2fijadEJETlozbDZ1a2FldnFwZEYybzh=
ZMGc</a></div>
<div><br></div><div>Thanks,</div><div>Adam Rice</div><div><br></div><div><t=
able cellspacing=3D"0" cellpadding=3D"0" dir=3D"ltr" style=3D"table-layout:=
fixed;font-size:13px;font-family:arial,sans,sans-serif"><colgroup><col widt=
h=3D"83"><col width=3D"114"><col width=3D"120"><col width=3D"57"><col width=
=3D"57"><col width=3D"57"><col width=3D"57"><col width=3D"57"><col width=3D=
"57"><col width=3D"57"><col width=3D"57"></colgroup><tbody><tr style=3D"hei=
ght:17px">
<td style=3D"padding:0px 3px;vertical-align:bottom;background-color:rgb(255=
,242,204);font-weight:bold;color:rgb(0,0,0);direction:ltr;border:1px solid =
rgb(0,0,0)">Browser</td><td style=3D"padding:0px 3px;vertical-align:bottom;=
background-color:rgb(255,242,204);font-weight:bold;color:rgb(0,0,0);directi=
on:ltr;border-right-width:1px;border-right-style:solid;border-right-color:r=
gb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;border-bottom-c=
olor:rgb(0,0,0);border-top-width:1px;border-top-style:solid;border-top-colo=
r:rgb(0,0,0)">
Version tested</td><td style=3D"padding:0px 3px;vertical-align:bottom;backg=
round-color:rgb(255,242,204);font-weight:bold;color:rgb(0,0,0);direction:lt=
r;border-right-width:1px;border-right-style:solid;border-right-color:rgb(0,=
0,0);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:=
rgb(0,0,0);border-top-width:1px;border-top-style:solid;border-top-color:rgb=
(0,0,0)">
Code on network</td><td style=3D"padding:0px 3px;vertical-align:bottom;back=
ground-color:rgb(255,242,204);color:rgb(0,0,0);text-align:right;border-righ=
t-width:1px;border-right-style:solid;border-right-color:rgb(0,0,0);border-b=
ottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0);bo=
rder-top-width:1px;border-top-style:solid;border-top-color:rgb(0,0,0)">
0</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-color:r=
gb(255,242,204);color:rgb(0,0,0);text-align:right;border-right-width:1px;bo=
rder-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:1p=
x;border-bottom-style:solid;border-bottom-color:rgb(0,0,0);border-top-width=
:1px;border-top-style:solid;border-top-color:rgb(0,0,0)">
999</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-color=
:rgb(255,242,204);color:rgb(0,0,0);text-align:right;border-right-width:1px;=
border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:=
1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0);border-top-wid=
th:1px;border-top-style:solid;border-top-color:rgb(0,0,0)">
1005</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(255,242,204);color:rgb(0,0,0);text-align:right;border-right-width:1px=
;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width=
:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0);border-top-wi=
dth:1px;border-top-style:solid;border-top-color:rgb(0,0,0)">
1006</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(255,242,204);color:rgb(0,0,0);text-align:right;border-right-width:1px=
;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width=
:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0);border-top-wi=
dth:1px;border-top-style:solid;border-top-color:rgb(0,0,0)">
1015</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(255,242,204);color:rgb(0,0,0);text-align:right;border-right-width:1px=
;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width=
:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0);border-top-wi=
dth:1px;border-top-style:solid;border-top-color:rgb(0,0,0)">
1999</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(255,242,204);color:rgb(0,0,0);text-align:right;border-right-width:1px=
;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width=
:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0);border-top-wi=
dth:1px;border-top-style:solid;border-top-color:rgb(0,0,0)">
4999</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(255,242,204);color:rgb(0,0,0);text-align:right;border-right-width:1px=
;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width=
:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0);border-top-wi=
dth:1px;border-top-style:solid;border-top-color:rgb(0,0,0)">
65535</td></tr><tr style=3D"height:17px"><td style=3D"padding:0px 3px;verti=
cal-align:bottom;color:rgb(0,0,0);direction:ltr;border-right-width:1px;bord=
er-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:1px;=
border-bottom-style:solid;border-bottom-color:rgb(0,0,0);border-left-width:=
1px;border-left-style:solid;border-left-color:rgb(0,0,0)">
Chrome</td><td style=3D"padding:0px 3px;vertical-align:bottom;color:rgb(0,0=
,0);border-right-width:1px;border-right-style:solid;border-right-color:rgb(=
0,0,0);border-bottom-width:1px;border-bottom-style:solid;border-bottom-colo=
r:rgb(0,0,0)">
27.0.1453.116</td><td style=3D"padding:0px 3px;font-weight:bold;color:rgb(0=
,0,0);vertical-align:middle;direction:ltr;border-right-width:1px;border-rig=
ht-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:1px;border=
-bottom-style:solid;border-bottom-color:rgb(0,0,0)" rowspan=3D"6" colspan=
=3D"1">
<div style=3D"max-height:101px">Javascript CloseEvent.code</div></td><td st=
yle=3D"padding:0px 3px;vertical-align:bottom;color:rgb(0,0,0);text-align:ri=
ght;border-right-width:1px;border-right-style:solid;border-right-color:rgb(=
0,0,0);border-bottom-width:1px;border-bottom-style:solid;border-bottom-colo=
r:rgb(0,0,0)">
0</td><td style=3D"padding:0px 3px;vertical-align:bottom;color:rgb(0,0,0);t=
ext-align:right;border-right-width:1px;border-right-style:solid;border-righ=
t-color:rgb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;border=
-bottom-color:rgb(0,0,0)">
999</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-color=
:rgb(255,255,0);color:rgb(0,0,0);text-align:right;border-right-width:1px;bo=
rder-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:1p=
x;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
1006</td><td style=3D"padding:0px 3px;vertical-align:bottom;color:rgb(0,0,0=
);text-align:right;border-right-width:1px;border-right-style:solid;border-r=
ight-color:rgb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;bor=
der-bottom-color:rgb(0,0,0)">
1006</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(255,255,0);color:rgb(0,0,0);text-align:right;border-right-width:1px;b=
order-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:1=
px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
1006</td><td style=3D"padding:0px 3px;vertical-align:bottom;color:rgb(0,0,0=
);text-align:right;border-right-width:1px;border-right-style:solid;border-r=
ight-color:rgb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;bor=
der-bottom-color:rgb(0,0,0)">
1999</td><td style=3D"padding:0px 3px;vertical-align:bottom;color:rgb(0,0,0=
);text-align:right;border-right-width:1px;border-right-style:solid;border-r=
ight-color:rgb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;bor=
der-bottom-color:rgb(0,0,0)">
4999</td><td style=3D"padding:0px 3px;vertical-align:bottom;color:rgb(0,0,0=
);text-align:right;border-right-width:1px;border-right-style:solid;border-r=
ight-color:rgb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;bor=
der-bottom-color:rgb(0,0,0)">
65535</td></tr><tr style=3D"height:17px"><td style=3D"padding:0px 3px;verti=
cal-align:bottom;background-color:rgb(243,243,243);color:rgb(0,0,0);directi=
on:ltr;border-right-width:1px;border-right-style:solid;border-right-color:r=
gb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;border-bottom-c=
olor:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-c=
olor:rgb(0,0,0)">
Firefox</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-c=
olor:rgb(243,243,243);color:rgb(0,0,0);border-right-width:1px;border-right-=
style:solid;border-right-color:rgb(0,0,0);border-bottom-width:1px;border-bo=
ttom-style:solid;border-bottom-color:rgb(0,0,0)">
22</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-color:=
rgb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px;b=
order-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:1=
px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
0</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-color:r=
gb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px;bo=
rder-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:1p=
x;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
999</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-color=
:rgb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px;=
border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:=
1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
1005</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px=
;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width=
:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
1006</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px=
;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width=
:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
1015</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px=
;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width=
:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
1999</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px=
;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width=
:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
4999</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px=
;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width=
:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
65535</td></tr><tr style=3D"height:17px"><td style=3D"padding:0px 3px;verti=
cal-align:bottom;color:rgb(0,0,0);direction:ltr;border-right-width:1px;bord=
er-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:1px;=
border-bottom-style:solid;border-bottom-color:rgb(0,0,0);border-left-width:=
1px;border-left-style:solid;border-left-color:rgb(0,0,0)">
IE</td><td style=3D"padding:0px 3px;vertical-align:bottom;color:rgb(0,0,0);=
border-right-width:1px;border-right-style:solid;border-right-color:rgb(0,0,=
0);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rg=
b(0,0,0)">
10.0.9200.16618</td><td style=3D"padding:0px 3px;vertical-align:bottom;back=
ground-color:rgb(255,255,0);color:rgb(0,0,0);text-align:right;border-right-=
width:1px;border-right-style:solid;border-right-color:rgb(0,0,0);border-bot=
tom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
1006</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(255,255,0);color:rgb(0,0,0);text-align:right;border-right-width:1px;b=
order-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:1=
px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
1006</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(255,255,0);color:rgb(0,0,0);text-align:right;border-right-width:1px;b=
order-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:1=
px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
1006</td><td style=3D"padding:0px 3px;vertical-align:bottom;color:rgb(0,0,0=
);text-align:right;border-right-width:1px;border-right-style:solid;border-r=
ight-color:rgb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;bor=
der-bottom-color:rgb(0,0,0)">
1006</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(255,255,0);color:rgb(0,0,0);text-align:right;border-right-width:1px;b=
order-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:1=
px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
1006</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(255,255,0);color:rgb(0,0,0);text-align:right;border-right-width:1px;b=
order-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:1=
px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
1006</td><td style=3D"padding:0px 3px;vertical-align:bottom;color:rgb(0,0,0=
);text-align:right;border-right-width:1px;border-right-style:solid;border-r=
ight-color:rgb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;bor=
der-bottom-color:rgb(0,0,0)">
4999</td><td style=3D"padding:0px 3px;vertical-align:bottom;color:rgb(0,0,0=
);text-align:right;border-right-width:1px;border-right-style:solid;border-r=
ight-color:rgb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;bor=
der-bottom-color:rgb(0,0,0)">
65535</td></tr><tr style=3D"height:17px"><td style=3D"padding:0px 3px;verti=
cal-align:bottom;background-color:rgb(243,243,243);color:rgb(0,0,0);directi=
on:ltr;border-right-width:1px;border-right-style:solid;border-right-color:r=
gb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;border-bottom-c=
olor:rgb(0,0,0);border-left-width:1px;border-left-style:solid;border-left-c=
olor:rgb(0,0,0)">
Opera</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-col=
or:rgb(243,243,243);color:rgb(0,0,0);border-right-width:1px;border-right-st=
yle:solid;border-right-color:rgb(0,0,0);border-bottom-width:1px;border-bott=
om-style:solid;border-bottom-color:rgb(0,0,0)">
15.0.1147.130</td><td style=3D"padding:0px 3px;vertical-align:bottom;backgr=
ound-color:rgb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-=
width:1px;border-right-style:solid;border-right-color:rgb(0,0,0);border-bot=
tom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
0</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-color:r=
gb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px;bo=
rder-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:1p=
x;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
999</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-color=
:rgb(255,255,0);color:rgb(0,0,0);text-align:right;border-right-width:1px;bo=
rder-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:1p=
x;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
1006</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px=
;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width=
:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
1006</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(255,255,0);color:rgb(0,0,0);text-align:right;border-right-width:1px;b=
order-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:1=
px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
1006</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px=
;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width=
:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
1999</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px=
;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width=
:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
4999</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px=
;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width=
:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
65535</td></tr><tr style=3D"height:17px"><td style=3D"padding:0px 3px;verti=
cal-align:bottom;color:rgb(0,0,0);direction:ltr;border-right-width:1px;bord=
er-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:1px;=
border-bottom-style:solid;border-bottom-color:rgb(0,0,0);border-left-width:=
1px;border-left-style:solid;border-left-color:rgb(0,0,0)">
Safari</td><td style=3D"padding:0px 3px;vertical-align:bottom;color:rgb(0,0=
,0);direction:ltr;border-right-width:1px;border-right-style:solid;border-ri=
ght-color:rgb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;bord=
er-bottom-color:rgb(0,0,0)">
5.1.7 (7534.57.2)</td><td style=3D"padding:0px 3px;vertical-align:bottom;co=
lor:rgb(0,0,0);text-align:center;direction:ltr;border-right-width:1px;borde=
r-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:1px;b=
order-bottom-style:solid;border-bottom-color:rgb(0,0,0)" rowspan=3D"1" cols=
pan=3D"8">
Not available</td></tr><tr style=3D"height:17px"><td style=3D"padding:0px 3=
px;vertical-align:bottom;background-color:rgb(243,243,243);color:rgb(0,0,0)=
;direction:ltr;border-right-width:1px;border-right-style:solid;border-right=
-color:rgb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;border-=
bottom-color:rgb(0,0,0);border-left-width:1px;border-left-style:solid;borde=
r-left-color:rgb(0,0,0)">
Safari (Mac)</td><td style=3D"padding:0px 3px;vertical-align:bottom;backgro=
und-color:rgb(243,243,243);color:rgb(0,0,0);direction:ltr;border-right-widt=
h:1px;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-=
width:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
6.0.5 (8536.30.1)</td><td style=3D"padding:0px 3px;vertical-align:bottom;ba=
ckground-color:rgb(243,243,243);color:rgb(0,0,0);text-align:right;border-ri=
ght-width:1px;border-right-style:solid;border-right-color:rgb(0,0,0);border=
-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)"=
>
0</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-color:r=
gb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px;bo=
rder-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:1p=
x;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
999</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-color=
:rgb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px;=
border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width:=
1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
1005</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px=
;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width=
:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
1006</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px=
;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width=
:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
1015</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px=
;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width=
:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
1999</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px=
;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width=
:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
4999</td><td style=3D"padding:0px 3px;vertical-align:bottom;background-colo=
r:rgb(243,243,243);color:rgb(0,0,0);text-align:right;border-right-width:1px=
;border-right-style:solid;border-right-color:rgb(0,0,0);border-bottom-width=
:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0)">
65535</td></tr></tbody></table></div></div>

--089e01228aee4b0fc004e3f53287--

From joakim@intalio.com  Thu Aug 15 05:20:20 2013
Return-Path: <joakim@intalio.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 EE5E521F99F3 for <hybi@ietfa.amsl.com>; Thu, 15 Aug 2013 05:20:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.976
X-Spam-Level: 
X-Spam-Status: No, score=-4.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, GB_I_LETTER=-2, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
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 gPsZ7CJUOXt3 for <hybi@ietfa.amsl.com>; Thu, 15 Aug 2013 05:20:16 -0700 (PDT)
Received: from mail-ea0-f173.google.com (mail-ea0-f173.google.com [209.85.215.173]) by ietfa.amsl.com (Postfix) with ESMTP id 75B6E21F99F4 for <hybi@ietf.org>; Thu, 15 Aug 2013 05:20:15 -0700 (PDT)
Received: by mail-ea0-f173.google.com with SMTP id g10so329763eak.32 for <hybi@ietf.org>; Thu, 15 Aug 2013 05:20:13 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=YznSTHkPHkFeD3AZwCTEPB7BIwAgoUAGXRQE/HyEM+U=; b=ddcC/695k60fAANidnUxcVXJpGen2XHeWXhXwBfNmfAvCSENRw9hvrkVu9VyKqFT3s x02NT2t+kCBY/6+pOKxcZW++h/1kkNoLkxJr3rQ/kv+cjMmdzhBgPXNCd8ZydTEC0PWv 3Syauyk7HaQAeuY1AYegrC/fqkgDE6V18t4TNFHm9d6nzn1fJGQKGnV8CRzNVyBOLvdx 1MxZ4GtZq6voQcPHAFvF3RpAXfYehVYdnjaWM4tWLy4XZrDJOGSr2wbLcETQvMKJYaf+ O95pcJHpvt39WyXOip8FZHazoFXh3MNjKCb8g3mQNIlyaAt/6kZDY/8ArrvhgYr0hK30 /8LQ==
X-Gm-Message-State: ALoCoQl066QCnWRdg3m3DTDPzpHY0rCe9eW/eQBnHomLHb4YYOezmQbUkHLF2JwFOd8nw+sERXl1
MIME-Version: 1.0
X-Received: by 10.14.174.68 with SMTP id w44mr12547615eel.50.1376569212951; Thu, 15 Aug 2013 05:20:12 -0700 (PDT)
Received: by 10.14.134.73 with HTTP; Thu, 15 Aug 2013 05:20:12 -0700 (PDT)
In-Reply-To: <CAHixhFp0Ui+qDrKLRXWdwOhx0LX10B_1yvEztw-HB4WgRymveA@mail.gmail.com>
References: <CAHixhFp0Ui+qDrKLRXWdwOhx0LX10B_1yvEztw-HB4WgRymveA@mail.gmail.com>
Date: Thu, 15 Aug 2013 05:20:12 -0700
Message-ID: <CAG4zZZBO+ntBLE4uTsxLnnULKP2x7qeBEX_jci3xMEX+2roedQ@mail.gmail.com>
From: Joakim Erdfelt <joakim@intalio.com>
To: Adam Rice <ricea@google.com>
Content-Type: multipart/alternative; boundary=047d7b62204af28a2c04e3fb7efe
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Treatment of invalid close status codes by browser
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, 15 Aug 2013 12:20:20 -0000

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

Safari 5.x's websocket implementation is the Hixie-76 draft implementation.
 Very old.
Not worth including in this testing.

Status Code 1005 (No Status Code Provided), and Status Code 1015 (TLS
error) are not allowed to be sent over the network per spec.
Chrome and Opera are following the letter of the spec.  The other browsers
are not.
I would even say that pywebsocket has a bug if it even allows you to send
status code 1005 or 1015 over the wire.

Note, the autobahn protocol tests include all of these status code tests
and a few dozen more.

Also, did you test the 2 close codes that were added to the IANA registry
(after RFC6455 was finalized?)
https://www.iana.org/assignments/websocket/websocket.xhtml#close-code-numbe=
r
1012 (Service Restart)
1013 (Try Again Later)


--
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 Wed, Aug 14, 2013 at 9:49 PM, Adam Rice <ricea@google.com> wrote:

> I was interested in the handling of invalid status codes sent by the
> server to the browser, so I did some investigation. I am posting my resul=
ts
> here in case anyone finds them useful.
>
> My methodology was simple: I used a pywebsocket server configured to
> respond to any message by closing the connection with the status code in
> the payload of the message, and then manually tested a range of browsers.
> All tested browsers were on Windows 7, except for Mac Safari.
>
> The behaviour for status codes blocked by the browser was consistent
> across all browsers: they reported status code 1006 with an empty reason
> string to Javascript.
>
> Firefox and Mac Safari block no status codes at all. Chrome and Opera
> block codes 1005 (no status code provided) and 1015 (TLS error). IE also
> blocks these codes, and also blocks codes <1000 and between 1015 and 1999
> inclusive. No tested browser blocks any status code >=3D2000, up to and
> including 65535. All tested browsers correctly treat status codes as
> unsigned.
>
> I have included a table summarising my results below. If it appears
> mangled in your email client, you can view it at
> https://docs.google.com/a/chromium.org/spreadsheet/pub?key=3D0AuDUFVM2fij=
adEJETlozbDZ1a2FldnFwZEYybzhZMGc
>
> Thanks,
> Adam Rice
>
> Browser Version tested Code on network 0 999 1005 1006 1015 1999 49996553=
5Chrome27.0.1453.116
> Javascript CloseEvent.code
> 0 999 1006 1006 1006 1999 4999 65535 Firefox 22 0 999 1005 1006 1015 1999=
499965535IE10.0.9200.16618100610061006100610061006499965535Opera15.0.1147.1=
3009991006100610061999499965535Safari5.1.7 (7534.57.2)Not availableSafari (=
Mac)6.0.5 (8536.30.1)09991005100610151999499965535
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>
>

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

<div dir=3D"ltr">Safari 5.x&#39;s websocket implementation is the Hixie-76 =
draft implementation. =A0Very old.<div>Not worth including in this testing.=
</div><div><br></div><div>Status Code 1005 (No Status Code Provided), and S=
tatus Code 1015 (TLS error) are not allowed to be sent over the network per=
 spec.</div>
<div>Chrome and Opera are following the letter of the spec. =A0The other br=
owsers are not.</div><div>I would even say that pywebsocket has a bug if it=
 even allows you to send status code 1005 or 1015 over the wire.</div><div>
<br></div><div>Note, the autobahn protocol tests include all of these statu=
s code tests and a few dozen more.</div><div><br></div><div>Also, did you t=
est the 2 close codes that were added to the IANA registry (after RFC6455 w=
as finalized?)</div>
<div><a href=3D"https://www.iana.org/assignments/websocket/websocket.xhtml#=
close-code-number">https://www.iana.org/assignments/websocket/websocket.xht=
ml#close-code-number</a><br></div><div>1012 (Service Restart)</div><div>101=
3 (Try Again Later)</div>
<div><br></div></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" 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/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 Wed, Aug 14, 2013 at 9:49 PM, Adam Ri=
ce <span dir=3D"ltr">&lt;<a href=3D"mailto:ricea@google.com" target=3D"_bla=
nk">ricea@google.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex=
">
<div dir=3D"ltr">I was interested in the handling of invalid status codes s=
ent by the server to the browser, so I did some investigation. I am posting=
 my results here in case anyone finds them useful.<div><br></div><div>My me=
thodology was simple: I used a pywebsocket server configured to respond to =
any message by closing the connection with the status code in the payload o=
f the message, and then manually tested a range of browsers. All tested bro=
wsers were on Windows 7, except for Mac Safari.</div>

<div><br></div><div>The behaviour for status codes blocked by the browser w=
as consistent across all browsers: they reported status code 1006 with an e=
mpty reason string to Javascript.</div><div><br></div><div>Firefox and Mac =
Safari block no status codes at all. Chrome and Opera block codes 1005 (no =
status code provided) and 1015 (TLS error). IE also blocks these codes, and=
 also blocks codes &lt;1000 and between 1015 and 1999 inclusive. No tested =
browser blocks any status code &gt;=3D2000, up to and including 65535. All =
tested browsers correctly treat status codes as unsigned.</div>

<div><br></div><div>I have included a table summarising my results below. I=
f it appears mangled in your email client, you can view it at=A0<a href=3D"=
https://docs.google.com/a/chromium.org/spreadsheet/pub?key=3D0AuDUFVM2fijad=
EJETlozbDZ1a2FldnFwZEYybzhZMGc" target=3D"_blank">https://docs.google.com/a=
/chromium.org/spreadsheet/pub?key=3D0AuDUFVM2fijadEJETlozbDZ1a2FldnFwZEYybz=
hZMGc</a></div>

<div><br></div><div>Thanks,</div><div>Adam Rice</div><div><br></div><div><t=
able cellspacing=3D"0" cellpadding=3D"0" dir=3D"ltr" style=3D"table-layout:=
fixed;font-size:13px;font-family:arial,sans,sans-serif"><colgroup><col widt=
h=3D"83"><col width=3D"114"><col width=3D"120"><col width=3D"57"><col width=
=3D"57"><col width=3D"57"><col width=3D"57"><col width=3D"57"><col width=3D=
"57"><col width=3D"57"><col width=3D"57"></colgroup><tbody><tr style=3D"min=
-height:17px">

<td style=3D"vertical-align:bottom;direction:ltr;background-color:rgb(255,2=
42,204);font-weight:bold;border:1px solid rgb(0,0,0);padding:0px 3px">Brows=
er</td><td style=3D"border-bottom-width:1px;border-top-style:solid;directio=
n:ltr;background-color:rgb(255,242,204);border-right-style:solid;font-weigh=
t:bold;padding:0px 3px;border-bottom-color:rgb(0,0,0);border-top-width:1px;=
vertical-align:bottom;border-bottom-style:solid;border-top-color:rgb(0,0,0)=
;border-right-color:rgb(0,0,0);border-right-width:1px">

Version tested</td><td style=3D"border-bottom-width:1px;border-top-style:so=
lid;direction:ltr;background-color:rgb(255,242,204);border-right-style:soli=
d;font-weight:bold;padding:0px 3px;border-bottom-color:rgb(0,0,0);border-to=
p-width:1px;vertical-align:bottom;border-bottom-style:solid;border-top-colo=
r:rgb(0,0,0);border-right-color:rgb(0,0,0);border-right-width:1px">

Code on network</td><td style=3D"border-bottom-width:1px;border-top-style:s=
olid;text-align:right;background-color:rgb(255,242,204);border-right-style:=
solid;padding:0px 3px;border-bottom-color:rgb(0,0,0);border-top-width:1px;v=
ertical-align:bottom;border-bottom-style:solid;border-top-color:rgb(0,0,0);=
border-right-color:rgb(0,0,0);border-right-width:1px">

0</td><td style=3D"border-bottom-width:1px;border-top-style:solid;text-alig=
n:right;background-color:rgb(255,242,204);border-right-style:solid;padding:=
0px 3px;border-bottom-color:rgb(0,0,0);border-top-width:1px;vertical-align:=
bottom;border-bottom-style:solid;border-top-color:rgb(0,0,0);border-right-c=
olor:rgb(0,0,0);border-right-width:1px">

999</td><td style=3D"border-bottom-width:1px;border-top-style:solid;text-al=
ign:right;background-color:rgb(255,242,204);border-right-style:solid;paddin=
g:0px 3px;border-bottom-color:rgb(0,0,0);border-top-width:1px;vertical-alig=
n:bottom;border-bottom-style:solid;border-top-color:rgb(0,0,0);border-right=
-color:rgb(0,0,0);border-right-width:1px">

1005</td><td style=3D"border-bottom-width:1px;border-top-style:solid;text-a=
lign:right;background-color:rgb(255,242,204);border-right-style:solid;paddi=
ng:0px 3px;border-bottom-color:rgb(0,0,0);border-top-width:1px;vertical-ali=
gn:bottom;border-bottom-style:solid;border-top-color:rgb(0,0,0);border-righ=
t-color:rgb(0,0,0);border-right-width:1px">

1006</td><td style=3D"border-bottom-width:1px;border-top-style:solid;text-a=
lign:right;background-color:rgb(255,242,204);border-right-style:solid;paddi=
ng:0px 3px;border-bottom-color:rgb(0,0,0);border-top-width:1px;vertical-ali=
gn:bottom;border-bottom-style:solid;border-top-color:rgb(0,0,0);border-righ=
t-color:rgb(0,0,0);border-right-width:1px">

1015</td><td style=3D"border-bottom-width:1px;border-top-style:solid;text-a=
lign:right;background-color:rgb(255,242,204);border-right-style:solid;paddi=
ng:0px 3px;border-bottom-color:rgb(0,0,0);border-top-width:1px;vertical-ali=
gn:bottom;border-bottom-style:solid;border-top-color:rgb(0,0,0);border-righ=
t-color:rgb(0,0,0);border-right-width:1px">

1999</td><td style=3D"border-bottom-width:1px;border-top-style:solid;text-a=
lign:right;background-color:rgb(255,242,204);border-right-style:solid;paddi=
ng:0px 3px;border-bottom-color:rgb(0,0,0);border-top-width:1px;vertical-ali=
gn:bottom;border-bottom-style:solid;border-top-color:rgb(0,0,0);border-righ=
t-color:rgb(0,0,0);border-right-width:1px">

4999</td><td style=3D"border-bottom-width:1px;border-top-style:solid;text-a=
lign:right;background-color:rgb(255,242,204);border-right-style:solid;paddi=
ng:0px 3px;border-bottom-color:rgb(0,0,0);border-top-width:1px;vertical-ali=
gn:bottom;border-bottom-style:solid;border-top-color:rgb(0,0,0);border-righ=
t-color:rgb(0,0,0);border-right-width:1px">

65535</td></tr><tr style=3D"min-height:17px"><td style=3D"border-bottom-wid=
th:1px;direction:ltr;border-right-style:solid;padding:0px 3px;border-bottom=
-color:rgb(0,0,0);vertical-align:bottom;border-bottom-style:solid;border-le=
ft-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-left-style:solid;b=
order-right-width:1px;border-left-width:1px">

Chrome</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;v=
ertical-align:bottom;border-right-color:rgb(0,0,0);border-right-width:1px;b=
order-right-style:solid;padding:0px 3px;border-bottom-color:rgb(0,0,0)">

27.0.1453.116</td><td style=3D"border-bottom-style:solid;border-bottom-widt=
h:1px;vertical-align:middle;border-right-color:rgb(0,0,0);direction:ltr;bor=
der-right-width:1px;border-right-style:solid;font-weight:bold;padding:0px 3=
px;border-bottom-color:rgb(0,0,0)" rowspan=3D"6" colspan=3D"1">

<div style=3D"max-height:101px">Javascript CloseEvent.code</div></td><td st=
yle=3D"border-bottom-style:solid;border-bottom-width:1px;vertical-align:bot=
tom;text-align:right;border-right-color:rgb(0,0,0);border-right-width:1px;b=
order-right-style:solid;padding:0px 3px;border-bottom-color:rgb(0,0,0)">

0</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;vertic=
al-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-right=
-width:1px;border-right-style:solid;padding:0px 3px;border-bottom-color:rgb=
(0,0,0)">

999</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;vert=
ical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-rig=
ht-width:1px;background-color:rgb(255,255,0);border-right-style:solid;paddi=
ng:0px 3px;border-bottom-color:rgb(0,0,0)">

1006</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;border-right-style:solid;padding:0px 3px;border-bottom-color:=
rgb(0,0,0)">

1006</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(255,255,0);border-right-style:solid;padd=
ing:0px 3px;border-bottom-color:rgb(0,0,0)">

1006</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;border-right-style:solid;padding:0px 3px;border-bottom-color:=
rgb(0,0,0)">

1999</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;border-right-style:solid;padding:0px 3px;border-bottom-color:=
rgb(0,0,0)">

4999</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;border-right-style:solid;padding:0px 3px;border-bottom-color:=
rgb(0,0,0)">

65535</td></tr><tr style=3D"min-height:17px"><td style=3D"border-bottom-wid=
th:1px;direction:ltr;background-color:rgb(243,243,243);border-right-style:s=
olid;padding:0px 3px;border-bottom-color:rgb(0,0,0);vertical-align:bottom;b=
order-bottom-style:solid;border-left-color:rgb(0,0,0);border-right-color:rg=
b(0,0,0);border-left-style:solid;border-right-width:1px;border-left-width:1=
px">

Firefox</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;=
vertical-align:bottom;border-right-color:rgb(0,0,0);border-right-width:1px;=
background-color:rgb(243,243,243);border-right-style:solid;padding:0px 3px;=
border-bottom-color:rgb(0,0,0)">

22</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;verti=
cal-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-righ=
t-width:1px;background-color:rgb(243,243,243);border-right-style:solid;padd=
ing:0px 3px;border-bottom-color:rgb(0,0,0)">

0</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;vertic=
al-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-right=
-width:1px;background-color:rgb(243,243,243);border-right-style:solid;paddi=
ng:0px 3px;border-bottom-color:rgb(0,0,0)">

999</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;vert=
ical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-rig=
ht-width:1px;background-color:rgb(243,243,243);border-right-style:solid;pad=
ding:0px 3px;border-bottom-color:rgb(0,0,0)">

1005</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(243,243,243);border-right-style:solid;pa=
dding:0px 3px;border-bottom-color:rgb(0,0,0)">

1006</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(243,243,243);border-right-style:solid;pa=
dding:0px 3px;border-bottom-color:rgb(0,0,0)">

1015</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(243,243,243);border-right-style:solid;pa=
dding:0px 3px;border-bottom-color:rgb(0,0,0)">

1999</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(243,243,243);border-right-style:solid;pa=
dding:0px 3px;border-bottom-color:rgb(0,0,0)">

4999</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(243,243,243);border-right-style:solid;pa=
dding:0px 3px;border-bottom-color:rgb(0,0,0)">

65535</td></tr><tr style=3D"min-height:17px"><td style=3D"border-bottom-wid=
th:1px;direction:ltr;border-right-style:solid;padding:0px 3px;border-bottom=
-color:rgb(0,0,0);vertical-align:bottom;border-bottom-style:solid;border-le=
ft-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-left-style:solid;b=
order-right-width:1px;border-left-width:1px">

IE</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;verti=
cal-align:bottom;border-right-color:rgb(0,0,0);border-right-width:1px;borde=
r-right-style:solid;padding:0px 3px;border-bottom-color:rgb(0,0,0)">
10.0.9200.16618</td><td style=3D"border-bottom-style:solid;border-bottom-wi=
dth:1px;vertical-align:bottom;text-align:right;border-right-color:rgb(0,0,0=
);border-right-width:1px;background-color:rgb(255,255,0);border-right-style=
:solid;padding:0px 3px;border-bottom-color:rgb(0,0,0)">

1006</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(255,255,0);border-right-style:solid;padd=
ing:0px 3px;border-bottom-color:rgb(0,0,0)">

1006</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(255,255,0);border-right-style:solid;padd=
ing:0px 3px;border-bottom-color:rgb(0,0,0)">

1006</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;border-right-style:solid;padding:0px 3px;border-bottom-color:=
rgb(0,0,0)">

1006</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(255,255,0);border-right-style:solid;padd=
ing:0px 3px;border-bottom-color:rgb(0,0,0)">

1006</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(255,255,0);border-right-style:solid;padd=
ing:0px 3px;border-bottom-color:rgb(0,0,0)">

1006</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;border-right-style:solid;padding:0px 3px;border-bottom-color:=
rgb(0,0,0)">

4999</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;border-right-style:solid;padding:0px 3px;border-bottom-color:=
rgb(0,0,0)">

65535</td></tr><tr style=3D"min-height:17px"><td style=3D"border-bottom-wid=
th:1px;direction:ltr;background-color:rgb(243,243,243);border-right-style:s=
olid;padding:0px 3px;border-bottom-color:rgb(0,0,0);vertical-align:bottom;b=
order-bottom-style:solid;border-left-color:rgb(0,0,0);border-right-color:rg=
b(0,0,0);border-left-style:solid;border-right-width:1px;border-left-width:1=
px">

Opera</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ve=
rtical-align:bottom;border-right-color:rgb(0,0,0);border-right-width:1px;ba=
ckground-color:rgb(243,243,243);border-right-style:solid;padding:0px 3px;bo=
rder-bottom-color:rgb(0,0,0)">

15.0.1147.130</td><td style=3D"border-bottom-style:solid;border-bottom-widt=
h:1px;vertical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);=
border-right-width:1px;background-color:rgb(243,243,243);border-right-style=
:solid;padding:0px 3px;border-bottom-color:rgb(0,0,0)">

0</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;vertic=
al-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-right=
-width:1px;background-color:rgb(243,243,243);border-right-style:solid;paddi=
ng:0px 3px;border-bottom-color:rgb(0,0,0)">

999</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;vert=
ical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-rig=
ht-width:1px;background-color:rgb(255,255,0);border-right-style:solid;paddi=
ng:0px 3px;border-bottom-color:rgb(0,0,0)">

1006</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(243,243,243);border-right-style:solid;pa=
dding:0px 3px;border-bottom-color:rgb(0,0,0)">

1006</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(255,255,0);border-right-style:solid;padd=
ing:0px 3px;border-bottom-color:rgb(0,0,0)">

1006</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(243,243,243);border-right-style:solid;pa=
dding:0px 3px;border-bottom-color:rgb(0,0,0)">

1999</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(243,243,243);border-right-style:solid;pa=
dding:0px 3px;border-bottom-color:rgb(0,0,0)">

4999</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(243,243,243);border-right-style:solid;pa=
dding:0px 3px;border-bottom-color:rgb(0,0,0)">

65535</td></tr><tr style=3D"min-height:17px"><td style=3D"border-bottom-wid=
th:1px;direction:ltr;border-right-style:solid;padding:0px 3px;border-bottom=
-color:rgb(0,0,0);vertical-align:bottom;border-bottom-style:solid;border-le=
ft-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-left-style:solid;b=
order-right-width:1px;border-left-width:1px">

Safari</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;v=
ertical-align:bottom;border-right-color:rgb(0,0,0);direction:ltr;border-rig=
ht-width:1px;border-right-style:solid;padding:0px 3px;border-bottom-color:r=
gb(0,0,0)">

5.1.7 (7534.57.2)</td><td style=3D"border-bottom-style:solid;border-bottom-=
width:1px;vertical-align:bottom;text-align:center;border-right-color:rgb(0,=
0,0);direction:ltr;border-right-width:1px;border-right-style:solid;padding:=
0px 3px;border-bottom-color:rgb(0,0,0)" rowspan=3D"1" colspan=3D"8">

Not available</td></tr><tr style=3D"min-height:17px"><td style=3D"border-bo=
ttom-width:1px;direction:ltr;background-color:rgb(243,243,243);border-right=
-style:solid;padding:0px 3px;border-bottom-color:rgb(0,0,0);vertical-align:=
bottom;border-bottom-style:solid;border-left-color:rgb(0,0,0);border-right-=
color:rgb(0,0,0);border-left-style:solid;border-right-width:1px;border-left=
-width:1px">

Safari (Mac)</td><td style=3D"border-bottom-style:solid;border-bottom-width=
:1px;vertical-align:bottom;border-right-color:rgb(0,0,0);direction:ltr;bord=
er-right-width:1px;background-color:rgb(243,243,243);border-right-style:sol=
id;padding:0px 3px;border-bottom-color:rgb(0,0,0)">

6.0.5 (8536.30.1)</td><td style=3D"border-bottom-style:solid;border-bottom-=
width:1px;vertical-align:bottom;text-align:right;border-right-color:rgb(0,0=
,0);border-right-width:1px;background-color:rgb(243,243,243);border-right-s=
tyle:solid;padding:0px 3px;border-bottom-color:rgb(0,0,0)">

0</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;vertic=
al-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-right=
-width:1px;background-color:rgb(243,243,243);border-right-style:solid;paddi=
ng:0px 3px;border-bottom-color:rgb(0,0,0)">

999</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;vert=
ical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-rig=
ht-width:1px;background-color:rgb(243,243,243);border-right-style:solid;pad=
ding:0px 3px;border-bottom-color:rgb(0,0,0)">

1005</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(243,243,243);border-right-style:solid;pa=
dding:0px 3px;border-bottom-color:rgb(0,0,0)">

1006</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(243,243,243);border-right-style:solid;pa=
dding:0px 3px;border-bottom-color:rgb(0,0,0)">

1015</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(243,243,243);border-right-style:solid;pa=
dding:0px 3px;border-bottom-color:rgb(0,0,0)">

1999</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(243,243,243);border-right-style:solid;pa=
dding:0px 3px;border-bottom-color:rgb(0,0,0)">

4999</td><td style=3D"border-bottom-style:solid;border-bottom-width:1px;ver=
tical-align:bottom;text-align:right;border-right-color:rgb(0,0,0);border-ri=
ght-width:1px;background-color:rgb(243,243,243);border-right-style:solid;pa=
dding:0px 3px;border-bottom-color:rgb(0,0,0)">

65535</td></tr></tbody></table></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>

--047d7b62204af28a2c04e3fb7efe--

From tyoshino@google.com  Tue Aug 20 23:36:58 2013
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 BD28011E81AA for <hybi@ietfa.amsl.com>; Tue, 20 Aug 2013 23:36:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.977
X-Spam-Level: 
X-Spam-Status: No, score=-3.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, GB_I_LETTER=-2, 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 OpUwCzjPOaDY for <hybi@ietfa.amsl.com>; Tue, 20 Aug 2013 23:36:55 -0700 (PDT)
Received: from mail-wg0-x235.google.com (mail-wg0-x235.google.com [IPv6:2a00:1450:400c:c00::235]) by ietfa.amsl.com (Postfix) with ESMTP id B340D11E819A for <hybi@ietf.org>; Tue, 20 Aug 2013 23:36:54 -0700 (PDT)
Received: by mail-wg0-f53.google.com with SMTP id c11so21619wgh.8 for <hybi@ietf.org>; Tue, 20 Aug 2013 23:36:49 -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=S8Zm3yjn5fPCRC9rKClp/1VowoQOGEH9E5u1Ad7JsnM=; b=bnMExTiSm5j4z8qW/WS0KekJnRsIxN+Nd+lQz9gvF/wZGyTOXkC7XNTxPzObF19IaB MBI8A1u3v6kl74lUusfRDbJlzfxveKSJAQrDY87+oI9EEIKuSUhKlp2wVZKf9wNfn3nu AM7uyIQr+/CinB2tbYQl6If41mEA+khUTtepRlMnYyF0T7I857+5DsEt6DlCOZf7uSYR pk5YkSauiuqIKRBHlDG77KGdrUZ/jzx7p5cbrCPAAuRics4imI/fK2zxbMDfCknZR82w 2pibkXC50Y2Xc9EkQ0AJp0FzjbCBXisGJ3IoS1w0MzoFUpDSfeedrI7ZwMcuQEeJe7c3 kD1Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=S8Zm3yjn5fPCRC9rKClp/1VowoQOGEH9E5u1Ad7JsnM=; b=YIoJ+0XK2ssHm0c9Pt3kyHsjLQ+i/Ohlo+358yf5Mz/J0VzsZLijvB14T22gkThn0k KnQi74cL58WNp/4jA4q+anwK53eAiszurMFBmCebtX61fjfo/2kCXX3FvBipmmRo3UKD BWNODIvoF/Rlfqxp/jRx3EVVrok9VZeTmFOLlfkKas3B6nxKv0D4IMj1e/uZGOpPZZdk 9v/mz58TfitfuAYzN9g3pdAHara3Qm4f+rKyijHwBfKvnD4SIrnnVoOyICW9G1RgXOAK TjHvyw7VKoGlHIfPes426Ev0rDsjc+UKjZr/i/dqSBjxJpjyuOfcaOw8Nba0K08e6K/p EHSQ==
X-Gm-Message-State: ALoCoQlN585KjV4t2TeicxDNy98dKYFtjh71I9ysNp7vf/a+wXs/ONAlLduLWkB/5XagEneYs4KQu/gS9fsz7pvu8kVYsFO6r58UasCBiPZ6k4yoHLyrfl0Zg3VzDHGlX/oAsiI+Xw7aXHwV+cLQ99E0NSDtzqKflVCM/5ivPNAqRT4ewn4QX8wienM+wTY/4jfdYuC00B5a
X-Received: by 10.180.97.101 with SMTP id dz5mr15260054wib.11.1377067007681; Tue, 20 Aug 2013 23:36:47 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.194.15.133 with HTTP; Tue, 20 Aug 2013 23:36:27 -0700 (PDT)
In-Reply-To: <CAG4zZZBO+ntBLE4uTsxLnnULKP2x7qeBEX_jci3xMEX+2roedQ@mail.gmail.com>
References: <CAHixhFp0Ui+qDrKLRXWdwOhx0LX10B_1yvEztw-HB4WgRymveA@mail.gmail.com> <CAG4zZZBO+ntBLE4uTsxLnnULKP2x7qeBEX_jci3xMEX+2roedQ@mail.gmail.com>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Wed, 21 Aug 2013 15:36:27 +0900
Message-ID: <CAH9hSJZygRuc4J-m+yiOS6+2bgXGQqUGZkdhn0eXGW6DeDqQvw@mail.gmail.com>
To: Joakim Erdfelt <joakim@intalio.com>
Content-Type: multipart/alternative; boundary=f46d043747add35bcf04e46f65f1
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Treatment of invalid close status codes by browser
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: Wed, 21 Aug 2013 06:36:58 -0000

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

On Thu, Aug 15, 2013 at 9:20 PM, Joakim Erdfelt <joakim@intalio.com> wrote:

> Status Code 1005 (No Status Code Provided), and Status Code 1015 (TLS
> error) are not allowed to be sent over the network per spec.
> Chrome and Opera are following the letter of the spec.  The other browsers
> are not.
>

Yes. I think it's fine to handle such input as error and return 1006 to app.

I think:
- 0-999 and 5000-65535: should be handled as error
- not-yet-defined ones in 1000-2999 range: it's ok either to pass through
them to app or convert them into 1006 (update to accept when registered
with IANA)
- 3000-4999: should be passed to app as-is


> I would even say that pywebsocket has a bug if it even allows you to send
> status code 1005 or 1015 over the wire.
>

pywebsocket raises an exception for such code. Adam used modified one.


>
> Note, the autobahn protocol tests include all of these status code tests
> and a few dozen more.
>
>
Thanks. Chrome, Firefox and IE are covered by Section 7.
http://autobahn.ws/testsuite/reports/clients/index.html


> Also, did you test the 2 close codes that were added to the IANA registry
> (after RFC6455 was finalized?)
>
> https://www.iana.org/assignments/websocket/websocket.xhtml#close-code-number
> 1012 (Service Restart)
> 1013 (Try Again Later)
>
>
Oh. We should accept them.

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

<div dir=3D"ltr">On Thu, Aug 15, 2013 at 9:20 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><div class=3D"gmail_extra"><div class=
=3D"gmail_quote">

<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;p=
adding-left:1ex"><div dir=3D"ltr"><div>Status Code 1005 (No Status Code Pro=
vided), and Status Code 1015 (TLS error) are not allowed to be sent over th=
e network per spec.</div>


<div>Chrome and Opera are following the letter of the spec. =A0The other br=
owsers are not.</div></div></blockquote><div><br></div><div>Yes. I think it=
&#39;s fine to handle such input as error and return 1006 to app.</div><div=
>

<br></div><div>I think:</div><div>- 0-999 and 5000-65535: should be handled=
 as error</div><div>- not-yet-defined ones in 1000-2999 range: it&#39;s ok =
either to pass through them to app or convert them into 1006 (update to acc=
ept when registered with IANA)</div>

<div>- 3000-4999: should be passed to app as-is</div><div>=A0<br></div><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left=
-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;paddi=
ng-left:1ex">

<div dir=3D"ltr"><div>I would even say that pywebsocket has a bug if it eve=
n allows you to send status code 1005 or 1015 over the wire.</div></div></b=
lockquote><div><br></div><div>pywebsocket raises an exception for such code=
. Adam used modified one.</div>

<div>=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px=
 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left=
-style:solid;padding-left:1ex"><div dir=3D"ltr"><div>
<br></div><div>Note, the autobahn protocol tests include all of these statu=
s code tests and a few dozen more.</div><div><br></div></div></blockquote><=
div><br></div><div>Thanks. Chrome, Firefox and IE are covered by Section 7.=
</div>

<div><a href=3D"http://autobahn.ws/testsuite/reports/clients/index.html">ht=
tp://autobahn.ws/testsuite/reports/clients/index.html</a><br></div><div>=A0=
</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;b=
order-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:s=
olid;padding-left:1ex">

<div dir=3D"ltr"><div></div><div>Also, did you test the 2 close codes that =
were added to the IANA registry (after RFC6455 was finalized?)</div>
<div><a href=3D"https://www.iana.org/assignments/websocket/websocket.xhtml#=
close-code-number" target=3D"_blank">https://www.iana.org/assignments/webso=
cket/websocket.xhtml#close-code-number</a><br></div><div>1012 (Service Rest=
art)</div>

<div>1013 (Try Again Later)</div>
<div><br></div></div></blockquote><div><br></div><div>Oh. We should accept =
them.</div></div></div></div>

--f46d043747add35bcf04e46f65f1--

From zhong.j.yu@gmail.com  Fri Aug 30 11:24:17 2013
Return-Path: <zhong.j.yu@gmail.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 7915D21F9FE7 for <hybi@ietfa.amsl.com>; Fri, 30 Aug 2013 11:24:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, 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 Q9bzJXFXxrUC for <hybi@ietfa.amsl.com>; Fri, 30 Aug 2013 11:24:17 -0700 (PDT)
Received: from mail-oa0-x229.google.com (mail-oa0-x229.google.com [IPv6:2607:f8b0:4003:c02::229]) by ietfa.amsl.com (Postfix) with ESMTP id 15B7921F9FDA for <hybi@ietf.org>; Fri, 30 Aug 2013 11:24:17 -0700 (PDT)
Received: by mail-oa0-f41.google.com with SMTP id j17so2151056oag.0 for <hybi@ietf.org>; Fri, 30 Aug 2013 11:24:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1wgufkYNa1ATFGNCVD11HggVEiG6AyxlionGtIqElus=; b=VOdi/UkPK4WCwiCwmv+fYa3GUKtLpmm07CTECbNk7t8DD1PAGzx/0oWBgi/pHqAc4T OPDWhEswYDKRz1l8GN57VQPzXo73nUOARh2P9HiO4TxOc9HLPnkAfM8EKenV+158y2No /+l9RETok1vPOpHcI2InzfAk/WbB8oscodqraAPs+KX4xMS9xit7rAexy6sHPxtAkHPw 2gOadLwF8DMbPh/OONtgzDXiNPPrjFA1cgEbN+zyQgjg5j0ktvnQhcsNbWWPdz/YROEj ngwmTxEJRTJwsBP42BI4n6dOJcvPyCQX4hJV4JTBYIW+JUS5YS6cs3qIG28VemCFqBCt ta+Q==
MIME-Version: 1.0
X-Received: by 10.60.80.8 with SMTP id n8mr7834728oex.33.1377887056653; Fri, 30 Aug 2013 11:24:16 -0700 (PDT)
Received: by 10.76.25.41 with HTTP; Fri, 30 Aug 2013 11:24:16 -0700 (PDT)
Date: Fri, 30 Aug 2013 13:24:16 -0500
Message-ID: <CACuKZqGbjfK_jYj3X8jrJPeGyXVk2ah3JzzPpniTTY5wrBqVCA@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: Hybi <hybi@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1
Subject: [hybi] Close Frame in the middle of a message
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: Fri, 30 Aug 2013 18:24:17 -0000

If a Close Frame arrives before the current message is terminated, how
should the server react? Is it required that the server responds with
a Close Frame? Can the server consider this a serious error and drop
the connection without a Close Frame?

Thanks,
Zhong Yu

From joakim@intalio.com  Fri Aug 30 12:28:38 2013
Return-Path: <joakim@intalio.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 48AD321F9DD0 for <hybi@ietfa.amsl.com>; Fri, 30 Aug 2013 12:28:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.976
X-Spam-Level: 
X-Spam-Status: No, score=-3.976 tagged_above=-999 required=5 tests=[AWL=-1.000, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
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 ZegbAyqpBDb8 for <hybi@ietfa.amsl.com>; Fri, 30 Aug 2013 12:28:34 -0700 (PDT)
Received: from mail-ea0-f177.google.com (mail-ea0-f177.google.com [209.85.215.177]) by ietfa.amsl.com (Postfix) with ESMTP id 2FFFF21F9DB4 for <hybi@ietf.org>; Fri, 30 Aug 2013 12:28:33 -0700 (PDT)
Received: by mail-ea0-f177.google.com with SMTP id f15so1091018eak.8 for <hybi@ietf.org>; Fri, 30 Aug 2013 12:28:33 -0700 (PDT)
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=msNqH+E+4Wn1Ay4vqkEy4payppTfyYGM29x+gCooXEg=; b=XkLudXMF+f53IbBozEsnJUc0o3lgBRUt4ZUx2GZ9+DBdIhly/CZiw/S+sVCW7AF+ou H3R+OzHnW1F2p3UPUltsFmtoFxgPOoj0P/+dZFlKt+LyEF3/D1AqLMOiIArYhwXjZl43 3wScYjKbtlkvSsCeXFMO2DkyCtiU35ADG2O6ySaNxPEIka8Ls4ReFEIROWZAnVtI4VAm z9RtFmFZ3lfxHGWqwRzMVGUZv0U7UVSgfDynP4WwfBpoLA5uTIhFpaLSqHOUG70G6Mbr iSftDfJYqMH/spZAhS7Oiz/09ax4mgliGpI8G/o+8IiLcqb5A3lO1PcusaeF+3sOVc1v LIKA==
X-Gm-Message-State: ALoCoQn/0yUKDAdFZF0nfM1IQfQ7alKRZN5PrsLdkU6H3di34+ckMzU9DAMPvuSv7//UDYbHa3mn
MIME-Version: 1.0
X-Received: by 10.15.86.11 with SMTP id h11mr379019eez.80.1377890913125; Fri, 30 Aug 2013 12:28:33 -0700 (PDT)
Received: by 10.14.134.73 with HTTP; Fri, 30 Aug 2013 12:28:33 -0700 (PDT)
In-Reply-To: <CACuKZqGbjfK_jYj3X8jrJPeGyXVk2ah3JzzPpniTTY5wrBqVCA@mail.gmail.com>
References: <CACuKZqGbjfK_jYj3X8jrJPeGyXVk2ah3JzzPpniTTY5wrBqVCA@mail.gmail.com>
Date: Fri, 30 Aug 2013 12:28:33 -0700
Message-ID: <CAG4zZZCRbLrJ6x5ubt6FtRmMFd-O1Q6xMaNMKUHZeN3NEV1o5g@mail.gmail.com>
From: Joakim Erdfelt <joakim@intalio.com>
To: Zhong Yu <zhong.j.yu@gmail.com>
Content-Type: multipart/alternative; boundary=089e0160d1886ac79f04e52f3af2
Cc: Hybi <hybi@ietf.org>
Subject: Re: [hybi] Close Frame in the middle of a message
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: Fri, 30 Aug 2013 19:28:38 -0000

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

A close frame between the individual frames making up a single message is
allowed.

It is not an error to receive such a frame, so normal close operations
should commence.
It is, however, an error if the endpoint that sent the close frame sends
more data frames after the close frame.

Section 5.5.1 outlines this rule.
http://tools.ietf.org/html/rfc6455#section-5.5.1

   The application MUST NOT send any more data frames after sending a
   Close frame.


This is because sending a close frame essentially says you are no longer
going send any other frames.
But until you receive the close frame response, you can continue to read
frames (just can't respond)


--
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, Aug 30, 2013 at 11:24 AM, Zhong Yu <zhong.j.yu@gmail.com> wrote:

> If a Close Frame arrives before the current message is terminated, how
> should the server react? Is it required that the server responds with
> a Close Frame? Can the server consider this a serious error and drop
> the connection without a Close Frame?
>
> Thanks,
> Zhong Yu
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>

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

<div dir=3D"ltr">A close frame between the individual frames making up a si=
ngle message is allowed.<div><br></div><div>It is not an error to receive s=
uch a frame, so normal close operations should commence.</div><div>It is, h=
owever, an error if the endpoint that sent the close frame sends more data =
frames after the close frame.</div>
<div><br></div><div>Section 5.5.1 outlines this rule.</div><div><a href=3D"=
http://tools.ietf.org/html/rfc6455#section-5.5.1">http://tools.ietf.org/htm=
l/rfc6455#section-5.5.1</a><br></div><div><br></div><div><pre class=3D"" st=
yle=3D"font-size:1em;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">
   The application MUST NOT send any more data frames after sending a
   Close frame.</pre></div><div><br></div><div>This is because sending a cl=
ose frame essentially says you are no longer going send any other frames.</=
div><div>But until you receive the close frame response, you can continue t=
o read frames (just can&#39;t respond)</div>
<div><br></div></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" 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/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 Fri, Aug 30, 2013 at 11:24 AM, Zhong =
Yu <span dir=3D"ltr">&lt;<a href=3D"mailto:zhong.j.yu@gmail.com" target=3D"=
_blank">zhong.j.yu@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"=
gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-=
left:1ex">
If a Close Frame arrives before the current message is terminated, how<br>
should the server react? Is it required that the server responds with<br>
a Close Frame? Can the server consider this a serious error and drop<br>
the connection without a Close Frame?<br>
<br>
Thanks,<br>
Zhong Yu<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>

--089e0160d1886ac79f04e52f3af2--

From zhong.j.yu@gmail.com  Fri Aug 30 13:37:17 2013
Return-Path: <zhong.j.yu@gmail.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 60E5421F9E9F for <hybi@ietfa.amsl.com>; Fri, 30 Aug 2013 13:37:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, 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 iTrn3zW23IZN for <hybi@ietfa.amsl.com>; Fri, 30 Aug 2013 13:37:16 -0700 (PDT)
Received: from mail-ob0-x22b.google.com (mail-ob0-x22b.google.com [IPv6:2607:f8b0:4003:c01::22b]) by ietfa.amsl.com (Postfix) with ESMTP id 9B92B21F9C72 for <hybi@ietf.org>; Fri, 30 Aug 2013 13:37:16 -0700 (PDT)
Received: by mail-ob0-f171.google.com with SMTP id tb18so2411543obb.30 for <hybi@ietf.org>; Fri, 30 Aug 2013 13:37:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+g14OT1TY/gWAajPOwOwJsg29m9e2gycPx1wvgeIocM=; b=QeGt0EfOVWdbvJtdJkiS98x1vStFS1dHZOu4ZGbN95SrGmPrv21Zm8rqM7f0w9HiQ4 FJ3y5CzvqbUb6/ACX/dEVO7YJqlD0U1QzqYGjW2c6HHGbQE7PZ1v8bMZA4kLvZdi16mC Vfrp2vl01JQkEPtmNgQRilAv7l+05qsLA/Vkv4U8jbSwUq+kAnhqptEAOwryNVlwwDq3 1boURYIZdDhNn5L/kp5hRWn+V0RCDCeidwN24ea8EzJFSkJgBtLa/9i6539R8RRHsNtK HoEszI5883NZjEol539CjcXGCkTapfeUYvVonINL+tYrkDnvS2sq05yXsxH44mKEIxGU N+xA==
MIME-Version: 1.0
X-Received: by 10.182.60.194 with SMTP id j2mr8194667obr.2.1377895034126; Fri, 30 Aug 2013 13:37:14 -0700 (PDT)
Received: by 10.76.25.41 with HTTP; Fri, 30 Aug 2013 13:37:14 -0700 (PDT)
In-Reply-To: <CAG4zZZCRbLrJ6x5ubt6FtRmMFd-O1Q6xMaNMKUHZeN3NEV1o5g@mail.gmail.com>
References: <CACuKZqGbjfK_jYj3X8jrJPeGyXVk2ah3JzzPpniTTY5wrBqVCA@mail.gmail.com> <CAG4zZZCRbLrJ6x5ubt6FtRmMFd-O1Q6xMaNMKUHZeN3NEV1o5g@mail.gmail.com>
Date: Fri, 30 Aug 2013 15:37:14 -0500
Message-ID: <CACuKZqGDzp8MA0FU_z30HEaoa6GccBEO0OHyVcw3Df-i9LNU7Q@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: Joakim Erdfelt <joakim@intalio.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: Hybi <hybi@ietf.org>
Subject: Re: [hybi] Close Frame in the middle of a message
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: Fri, 30 Aug 2013 20:37:17 -0000

It is certainly not a framing error. However the message is corrupt,
something must be terribly wrong on the sending end. I believe the
application on the receiving end should see an error, and it may elect
to close the connection uncleanly, because the sending end appears to
be defunct.

Zhong Yu

On Fri, Aug 30, 2013 at 2:28 PM, Joakim Erdfelt <joakim@intalio.com> wrote:
> A close frame between the individual frames making up a single message is
> allowed.
>
> It is not an error to receive such a frame, so normal close operations
> should commence.
> It is, however, an error if the endpoint that sent the close frame sends
> more data frames after the close frame.
>
> Section 5.5.1 outlines this rule.
> http://tools.ietf.org/html/rfc6455#section-5.5.1
>
>    The application MUST NOT send any more data frames after sending a
>    Close frame.
>
>
> This is because sending a close frame essentially says you are no longer
> going send any other frames.
> But until you receive the close frame response, you can continue to read
> frames (just can't respond)
>
>
> --
> Joakim Erdfelt <joakim@intalio.com>
> webtide.com - intalio.com/jetty
> Expert advice, services and support from from the Jetty & CometD experts
> eclipse.org/jetty - cometd.org
>
>
> On Fri, Aug 30, 2013 at 11:24 AM, Zhong Yu <zhong.j.yu@gmail.com> wrote:
>>
>> If a Close Frame arrives before the current message is terminated, how
>> should the server react? Is it required that the server responds with
>> a Close Frame? Can the server consider this a serious error and drop
>> the connection without a Close Frame?
>>
>> Thanks,
>> Zhong Yu
>> _______________________________________________
>> hybi mailing list
>> hybi@ietf.org
>> https://www.ietf.org/mailman/listinfo/hybi
>
>
