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

MQTT client receives same message multiple times when its session terminated by network or system error or broker sending Disconnect to client. #581

Open
vshirol opened this issue Jul 6, 2023 · 0 comments

Comments

@vshirol
Copy link

vshirol commented Jul 6, 2023

          [threadump_before_conn_reset.zip](https://github.com/hivemq/hivemq-mqtt-client/files/11913281/threadump_before_conn_reset.zip)

threadump_after_2times_conn_reset.zip
Hi @pglombardo
The above-mentioned issue is solved with your proposed code change. Thanks.
But we do see similar problem in different scenario, that is when MQTT broker terminates client connection by sending Disconnect MQTT packet to client or when connection reset occurs on client side, in this case MQTT broker is still running and not restarted.

So, in these scenarios with above mentioned code change doesn't help, client receives the duplicate message which is equal to number of times its connection reset either by broker or system error or client-side network issues.
Let me know if you need any more details from my side.

From thread dump we do see, upon every connection reset there is an increase in RxComputationThreadPool instance. Attaching thread dump of both normal and after 2 times connection

Thanks,
Vasant

Originally posted by @vshirol in #552 (comment)

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

No branches or pull requests

1 participant