wialon / gmqtt

Python MQTT v5.0 async client
MIT License
400 stars 52 forks source link

Periodically disconnects with mosquitto 1.4.15 #110

Closed hacker-cb closed 4 years ago

hacker-cb commented 4 years ago

Hello!

I'm using your clean example from README and I have two problems:

Connected
[TRYING WRITE TO CLOSED SOCKET]
Disconnected
Connected
Disconnected
[TRYING WRITE TO CLOSED SOCKET]
Connected
[TRYING WRITE TO CLOSED SOCKET]
Disconnected
Connected
[TRYING WRITE TO CLOSED SOCKET]
Disconnected
Connected
[TRYING WRITE TO CLOSED SOCKET]
Disconnected
Connected
Disconnected

mosquitto: 1.4.15 gmqtt: 0.6.5

With mosquitto 1.6.9 all works fine.

Mixser commented 4 years ago

Hello, @Hacker-CB

Thanks for your interesting in our project. At first look, I think this is a problem of mosquitto rather than problem of gmqtt. But we will check this behavior.

PS: Please look the issue #103, and send us detailed logs of your app and mosquitto

hacker-cb commented 4 years ago

Seems that problem was that I had two clients with the same client ID. So, problem with disconnections was from there.

Thank you.