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

Comments

Projects
None yet
3 participants
@lovisajohansson

lovisajohansson commented Oct 13, 2016

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

This comment has been minimized.

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 ralight added this to the 1.5.4 milestone Sep 26, 2018

ralight added a commit that referenced this issue Nov 7, 2018

@ralight

This comment has been minimized.

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 Nov 7, 2018

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