Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information