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

Fix sockets can stay open when upgrade failed #344

Merged
merged 1 commit into from
Aug 29, 2015

Conversation

nkzawa
Copy link
Contributor

@nkzawa nkzawa commented Aug 28, 2015

Upgrading transports will never be closed if Socket#onClose was called and then upgradeTimeoutTimer was cleared.
This PR ensures checkIntervalTimer to be cleared and prevents possible upgrade request overlap too.

rauchg added a commit that referenced this pull request Aug 29, 2015
Fix sockets can stay open when upgrade failed
@rauchg rauchg merged commit f3fd4bb into socketio:master Aug 29, 2015
@3rd-Eden
Copy link
Contributor

The lack of these for such critical bugs is disturbing.

@rauchg
Copy link
Contributor

rauchg commented Aug 29, 2015

"of tests" you mean? We have really solid coverage for the behaviors changed here.

@3rd-Eden
Copy link
Contributor

Yes, "tests". Well this fixes a critical bug, yet there are no tests added to ensure that this never happens before. While the coverage for behaviors might be great, coverage for these kind of bugs is not

@nkzawa
Copy link
Contributor Author

nkzawa commented Aug 30, 2015

I will see If I can add tests.

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.

3 participants