RESOLVED FIXED Bug 61851
WebSocket: WebSocketChannel::fail() should close the connection immediately
https://bugs.webkit.org/show_bug.cgi?id=61851
Summary WebSocket: WebSocketChannel::fail() should close the connection immediately
Yuta Kitamura
Reported 2011-06-01 03:01:11 PDT
Currently WebSocketChannel::fail() calls m_handle->close() instead of m_handle->disconnect(). This was a mistake, because m_handle->close() may not close the connection immediately if it has unsent data. m_handle->disconnect() should have been used, since it does exactly the same thing as what we want to do. For details, see how *fail the WebSocket connection* and *close the WebSocket connection* is defined in the protocol specification. http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-00#section-6
Attachments
Patch (2.16 KB, patch)
2011-06-01 03:31 PDT, Yuta Kitamura
no flags
Yuta Kitamura
Comment 1 2011-06-01 03:31:17 PDT
Kent Tamura
Comment 2 2011-06-01 17:36:01 PDT
Comment on attachment 95576 [details] Patch Looks ok.
WebKit Commit Bot
Comment 3 2011-06-01 19:53:26 PDT
Comment on attachment 95576 [details] Patch Clearing flags on attachment: 95576 Committed r87876: <http://trac.webkit.org/changeset/87876>
WebKit Commit Bot
Comment 4 2011-06-01 19:53:31 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.