Skip to content
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

Merged
merged 4 commits into from
Nov 14, 2011

Conversation

einaros
Copy link
Contributor

@einaros einaros commented Nov 14, 2011

No description provided.

@@ -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) {
Copy link
Contributor Author

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.

rauchg added a commit that referenced this pull request Nov 14, 2011
Bug fixes, and for some reason a heap of whitespace cleanups
@rauchg rauchg merged commit 7b6c850 into socketio:master Nov 14, 2011
@@ -121,23 +125,36 @@ module.exports = {
'Sec-WebSocket-Key': 'dGhlIHNhbXBsZSBub25jZQ=='
}

// handshake uses correct origin -- we want to block the actuall websocket call
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants