Websocket In Firefox Establish Two Connection
I'm coding a WebSocket server in Java. When I use WebSocket to connect to the server in firefox, I found two connection were established, and one of them never send any data... My
Solution 1:
This is a problem in Firefox 15 that is/will be fixed in firefox 16: https://bugzilla.mozilla.org/show_bug.cgi?id=789018
Firefox 15 is doing a speculative connect which is fine with HTTP/SPDY but because the WebSocket handshake is HTTP 1.0 (rather than 1.1) it is not able to re-use the speculative connection and has to make a second connection.
It's not a critical issue if your server is properly multithreaded and can accept multiple connections but it is annoying.
Post a Comment for "Websocket In Firefox Establish Two Connection"