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 connectionCount #13

Merged
merged 1 commit into from
Dec 11, 2016
Merged

Fix connectionCount #13

merged 1 commit into from
Dec 11, 2016

Conversation

willyboy
Copy link
Contributor

connectionCount is unreliable. If you call res.close() the disconnect event can be fired multiple times. Because connectionCount was being decremented in the disconnect handler (called multiple times), you end up with a situation where the number of connections doesn't match the connectionCount.

connectionCount is unreliable. If you call res.close() the disconnect event can be fired multiple times. Because connectionCount was being decremented in the disconnect handler (called multiple times), you end up with a situation where the number of connections doesn't match the connectionCount.
@rexxars
Copy link
Owner

rexxars commented Dec 11, 2016

Thanks!

@rexxars rexxars merged commit 9300f58 into rexxars:master Dec 11, 2016
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