miguelgrinberg / python-socketio

Python Socket.IO server and client
MIT License
4.01k stars 589 forks source link

Prevent multiple tasks for reconnection #1369

Open humayunsr opened 3 months ago

humayunsr commented 3 months ago

As discussed here.

https://github.com/miguelgrinberg/python-socketio/discussions/1367

In certain scenarios, this library creates multiple reconnection tasks.

A check is added to make sure that reconnection task starts only when

this task is not running.