eclipse / paho.mqtt.python

paho.mqtt.python
Other
2.15k stars 724 forks source link

Operation timed out if Internet connection is lost (TCP connection) #709

Closed samson0v closed 6 months ago

samson0v commented 1 year ago

Hi everyone! I am developing ThingsBoard IoT Gateway that uses as a dependency paho mqtt python library for data transition to ThingsBoard. Our clients and we encountered the following problem: When you turn off your internet connection and still publish messages, after a timeout raises the following exception:

зображення

After that, if you turn on the internet connection, new messages will not be published.

After some research in the issues tab, I saw that you fixed this issue but for the WebSocket connection type. Also, there is the same issue #694

I created PR #710 that fixes this issue.

MattBrittan commented 6 months ago

Closing this as Pierre has merged your PR (well cherry-picked your first commit). Please reopen if this does not resolve the issue.