According to the protocol specification for WebSockets, multiple connections in the handshake phase should not be allowed. Another WebSocket connection attempt by JavaScript should only be allowed after the previous handshake attempt has either completed successfully or has failed. This mechanism helps to prevent against denial of service attacks.
*** This bug has been marked as a duplicate of bug 32246 ***