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

Active stream statistic can become negative #84

Open
gavllew opened this issue Jun 27, 2013 · 1 comment
Open

Active stream statistic can become negative #84

gavllew opened this issue Jun 27, 2013 · 1 comment

Comments

@gavllew
Copy link
Contributor

gavllew commented Jun 27, 2013

After leaving NXB running for a few weeks handling WebSocket connections, I've found the number of active streams is shown as "-1/2865". I'm not on the latest code, but I don't think the WebSocket stuff has changed much since a1ab095.

I'm guessing that there are some fringe cases where the 'close' event gets fired more than once for a given WS, and we decrement the statistic every time. Should probably move stat_stream_terminate() to the two places where we emit the 'stream-terminate' event on wsep.

@zlokomatic
Copy link
Contributor

I also got this problems after some hours.
Stats showing: -3/146771

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

No branches or pull requests

2 participants