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 a1ab095625678dd876986cba8c252612e817b0b6.
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.
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 a1ab095625678dd876986cba8c252612e817b0b6.
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.