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

Negative number of inactive clients #287

Closed
lovisajohansson opened this issue Oct 13, 2016 · 2 comments
Closed

Negative number of inactive clients #287

lovisajohansson opened this issue Oct 13, 2016 · 2 comments

Comments

@lovisajohansson
Copy link

Hi,

I have an issue where I'm seeing negative numbers of inactive/disconnected clients. Any ideas about how that can happen?

$SYS/broker/clients/total  :  5
$SYS/broker/clients/inactive  : -2
$SYS/broker/clients/active  :  7

Mosquitto version 1.4.10

@PierreF
Copy link
Contributor

PierreF commented Jan 2, 2018

This happen when a (TCP) connection is established and before the MQTT connection occurred.
The easiest way to reproduce this is to open a plain TCP connection with telnet:

telnet localhost 1883

For each telnet session, the number of inactive clients will goes down by 1.

@ralight
Copy link
Contributor

ralight commented Nov 7, 2018

This is now fixed, an embarrassingly long time later. Thanks very much for your report.

@ralight ralight closed this as completed Nov 7, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants