-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug fixes, and for some reason a heap of whitespace cleanups #643
Conversation
@@ -623,7 +623,12 @@ Manager.prototype.handleClient = function (data, req) { | |||
|
|||
var transport = new transports[data.transport](this, data, req) | |||
, handshaken = this.handshaken[data.id]; | |||
|
|||
|
|||
if (transport.disconnected) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a transport fails, or a client isn't properly verified, he will still be noted as connected. Adding this may possibly avoid a heap of strange errors reported elsewhere.
Bug fixes, and for some reason a heap of whitespace cleanups
@@ -121,23 +125,36 @@ module.exports = { | |||
'Sec-WebSocket-Key': 'dGhlIHNhbXBsZSBub25jZQ==' | |||
} | |||
|
|||
// handshake uses correct origin -- we want to block the actuall websocket call |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The previous origin tests weren't actually testing much at all, both due to puny tests and prblmz in manager.js. Now they should be all dandy.
No description provided.