This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 12914 - close() should throw SYNTAX_ERR if the encoded reason string is too long (protocol supports up to 123 UTF-8 bytes)
Summary: close() should throw SYNTAX_ERR if the encoded reason string is too long (pro...
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebSocket API (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: public-webapps-bugzilla
URL: http://dev.w3.org/html5/websockets/#d...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-08 17:24 UTC by Adrian Bateman [MSFT]
Modified: 2011-06-21 22:54 UTC (History)
3 users (show)

See Also:


Attachments

Description Adrian Bateman [MSFT] 2011-06-08 17:24:56 UTC
The WebSocket protocol only supports reason strings which once encoded as UTF-8 are up to 123 bytes long. The API should specify what to do if the string is too long once encoded. Our preference is to throw a SYNTAX_ERR.
Comment 1 Ian 'Hixie' Hickson 2011-06-21 22:53:56 UTC
Done.
Comment 2 contributor 2011-06-21 22:54:32 UTC
Checked in as WHATWG revision r6269.
Check-in comment: Prevent API from sending too much data to the protocol for the close frame.
http://html5.org/tools/web-apps-tracker?from=6268&to=6269