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(server): Force socket.io clients disconnection on Windows #1121

Merged
merged 1 commit into from
Jul 11, 2014

Conversation

bcharbonnier
Copy link
Contributor

It occurs that only on Windows, socket.io clients are not properly disconnected, which causes Karma to not exit immediately when everything is done. We have to wait for some internal disconnection socket.io event timeout.

This PR basically check if all sockets are disconnected. If not we manually force the disconnection.

Fixes #1109

It occurs that only on Windows, socket.io clients are not properly disconnected, which causes Karma to not exit immediately when everything is done. We have to wait for some internal disconnection socket.io event timeout.

This PR basically check if all sockets are disconnected. If not we manually force the disconnection.

Fixes karma-runner#1109
@pkozlowski-opensource
Copy link
Member

+1 - I've tested it on my Win machine and it effectively solves the problem described in #1109 which is the blocking point for karma-runner/gulp-karma#5. Still, I'm definitively not a socket.io expert so not sure if this is the best of the best solutions, so any input from people more familiar with Karma / socket internals would be appreciated.

@vojtajina vojtajina merged commit 28239f4 into karma-runner:master Jul 11, 2014
@vojtajina
Copy link
Contributor

Thank you @bcharbonnier

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.

setTimout in socket.io prevents Karma from exiting on Windows
3 participants