Subject: [hybi] -10: Typo and comment on 5.1 Client Requirements

From: Brian Raymor <[email-masked]>
Date: Wed, 13 Jul 2011 04:58:48 +0000

There is a typo in 7.1.7 - "instruted" intead of "instructed".

    7.1.7.  Fail the WebSocket Connection
    ...
    An endpoint MUST NOT continue to attempt to process data (including a responding Close frame) from the remote endpoint after being instruted to _Fail the WebSocket Connection_.

In 5.1.  Client Requirements, there is a _Fail the WebSocket Connection_ case for Sec-WebSocket-Extensions but not for Sec-WebSocket-Protocol:

  5.  If the response includes a "Sec-WebSocket-Extensions" header, and
       this header indicates the use of an extension that was not
       present in the client' handshake (the server has indicated an
       extension not requested by the client), the client MUST _Fail the
       WebSocket Connection_.  (The parsing of this header to determine
       which extensions are requested is discussed in Section 9.1.)

For symmetry, should there be a similar paragraph for Sec-WebSocket-Protocol -or- should the Sec-WebSocket-Extensions case be removed, since the correct behavior is also specified in the paragraph following this one:

   If the server's response does not conform to the requirements for the
   server's handshake as defined in this section and in Section 5.2.2,
   the client MUST _Fail the WebSocket Connection_.