Fixes termination issues regarding #4#5
Fixes termination issues regarding #4#5donmahallem wants to merge 4 commits intoProjectLighthouseCAU:masterfrom
Conversation
in some cases this blocked (probably race condition with _ready) it blocked the lock in send
|
Thank you very much for the pull request! |
|
Currently tested on Windows(where I had the issues atleast) and WSL with Python 3.12. For me it works reliable for now. One might add an additional lock for the While debugging this I found some unrelated stuff that could be improved and I will follow up with PRs when I get to them. |
One of the main issues was a timing issue between initializing the connection and already accepting send requests. Antoher option would be to block accepting send requests until the connection has status connected.
I am not yet sure if this the final solution but Termination via KeyboardInterupt looks reliable for now.