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

hbmqtt broker doesn't time out PetNet Feeder correctly #23

Closed
kruton opened this issue Oct 15, 2020 · 4 comments
Closed

hbmqtt broker doesn't time out PetNet Feeder correctly #23

kruton opened this issue Oct 15, 2020 · 4 comments

Comments

@kruton
Copy link
Collaborator

kruton commented Oct 15, 2020

I saw this in testing sometimes, but it looks like hbmqtt broker isn't timing out clients correctly. Since the Feeder always connects with the same client ID, it will assume the state machine state that the hbmqtt broker has. Sometimes the hbmqtt state machine doesn't transition it to the "Disconnected" state in time. So it will try to transition from the "Connected" to "Connected" state, resulting in messages like this:

2020-10-15 09:55:40,505   WARNING  hbmqtt.broker: Client 40285608b03f085d1b4e31ec5f60b3b912f64f2d is reconnecting too quickly, make it wait     
2020-10-15 09:55:40,505   WARNING  hbmqtt.broker: Client 40285608b03f085d1b4e31ec5f60b3b912f64f2d is reconnecting too quickly, make it wait     
2020-10-15 09:55:40,509   WARNING  hbmqtt.broker: Client 40285608b03f085d1b4e31ec5f60b3b912f64f2d is reconnecting too quickly, make it wait     
2020-10-15 09:55:40,509   WARNING  hbmqtt.broker: Client 40285608b03f085d1b4e31ec5f60b3b912f64f2d is reconnecting too quickly, make it wait     
2020-10-15 09:55:40,509   WARNING  hbmqtt.broker: Client 40285608b03f085d1b4e31ec5f60b3b912f64f2d is reconnecting too quickly, make it wait     
2020-10-15 09:55:40,518   WARNING  hbmqtt.broker: Client 40285608b03f085d1b4e31ec5f60b3b912f64f2d is reconnecting too quickly, make it wait     
2020-10-15 09:55:40,518   WARNING  hbmqtt.broker: Client 40285608b03f085d1b4e31ec5f60b3b912f64f2d is reconnecting too quickly, make it wait     
2020-10-15 09:55:40,518   WARNING  hbmqtt.broker: Client 40285608b03f085d1b4e31ec5f60b3b912f64f2d is reconnecting too quickly, make it wait     
2020-10-15 09:55:40,518   WARNING  hbmqtt.broker: Client 40285608b03f085d1b4e31ec5f60b3b912f64f2d is reconnecting too quickly, make it wait     
2020-10-15 09:55:40,525   WARNING  hbmqtt.broker: Client 40285608b03f085d1b4e31ec5f60b3b912f64f2d is reconnecting too quickly, make it wait     
2020-10-15 09:55:40,525   WARNING  hbmqtt.broker: Client 40285608b03f085d1b4e31ec5f60b3b912f64f2d is reconnecting too quickly, make it wait     
2020-10-15 09:55:40,525   WARNING  hbmqtt.broker: Client 40285608b03f085d1b4e31ec5f60b3b912f64f2d is reconnecting too quickly, make it wait     
2020-10-15 09:55:40,525   WARNING  hbmqtt.broker: Client 40285608b03f085d1b4e31ec5f60b3b912f64f2d is reconnecting too quickly, make it wait     
2020-10-15 09:55:40,526   WARNING  hbmqtt.broker: Client 40285608b03f085d1b4e31ec5f60b3b912f64f2d is reconnecting too quickly, make it wait     
2020-10-15 09:55:40,526   WARNING  hbmqtt.broker: Client 40285608b03f085d1b4e31ec5f60b3b912f64f2d is reconnecting too quickly, make it wait     
2020-10-15 09:55:40,526   WARNING  hbmqtt.broker: Client 40285608b03f085d1b4e31ec5f60b3b912f64f2d is reconnecting too quickly, make it wait     
2020-10-15 09:55:40,528   WARNING  hbmqtt.broker: Client 40285608b03f085d1b4e31ec5f60b3b912f64f2d is reconnecting too quickly, make it wait     
2020-10-15 09:55:40,528   WARNING  hbmqtt.broker: Client 40285608b03f085d1b4e31ec5f60b3b912f64f2d is reconnecting too quickly, make it wait
@kruton
Copy link
Collaborator Author

kruton commented Oct 15, 2020

I'm not sure why it's looping so fast, because according to the code it should pause for one second between allowing the client to retry.

@kruton
Copy link
Collaborator Author

kruton commented Oct 15, 2020

It might have something to do with hbmqtt peculiarities. I reported an issue upstream at njouanin/hbmqtt#220

@kruton
Copy link
Collaborator Author

kruton commented Jan 6, 2021

@mbillow I think this is fixed now?

@mbillow
Copy link
Member

mbillow commented Jan 6, 2021

Yup, closing.

@mbillow mbillow closed this as completed Jan 6, 2021
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

2 participants