W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

[Bug 12912] New: Close status code is an unsigned short

From: <bugzilla@jessica.w3.org>
Date: Wed, 08 Jun 2011 17:17:21 +0000
To: public-webapps@w3.org
Message-ID: <bug-12912-2927@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12912

           Summary: Close status code is an unsigned short
           Product: WebAppsWG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebSocket API (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: adrianba@microsoft.com
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, public-webapps@w3.org


The code argument to the close() method [1] should be an unsigned short to
match the protocol spec [2]. This should also be reflected in the CloseEvent
[3].

The protocol document says:

      If there is a body, the first two bytes of the body
      MUST be a 2-byte integer (in network byte order)
      representing a status code defined in Section 7.4.


[1] http://dev.w3.org/html5/websockets/#the-websocket-interface
[2]
http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-07#section-4.5.1
[3] http://dev.w3.org/html5/websockets/#closeevent

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Wednesday, 8 June 2011 17:17:27 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:45 GMT