You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Situation:
I run an mqtt broker inside a docker container on windows. Everything works fine except this situation:
mqtt broker is down
aio-mqtt connect() is awaiting aio.open_connection() for a few seconds
mqtt broker comes up, aio.open_connection returns successful
Client::read() now throws an IncompleteReadError. I think this is something special to Docker on Windows because of weird socket forwarding or something.
Client::_task_done_callback now calls Client::_disconnect which is OK.
Client::_disconnect checks variable self._connected. Because Client::connect() is not completed yet, this evaluates to false and does not execute.
Result is a _read loop that has stopped.
Possible solution:
In Client::connect, move the line that does
self._connected = True
up so that it is done before the _reading_task and the other tasks are started.
The text was updated successfully, but these errors were encountered:
Situation:
I run an mqtt broker inside a docker container on windows. Everything works fine except this situation:
Possible solution:
In Client::connect, move the line that does
The text was updated successfully, but these errors were encountered: