I noticed one thing when there is a connection timeout the the whole web-socket thread seems to block my other threads. I have started the websocket with on_connect ->threaded= True. Everything goes fine and I don't block the ticks. I just copy the data onto the queue. When there is a drop in the connection , there seems to be a timeout and after a while the websocket resumes and everything is fine. During this timeout detection phase ( default is 30s) my whole program just stops ( Does not happen always , only for certain network conditions - not able to tell which network issue causes a timeout). Has anyone faced a similar issue? Is the blocking happening from some lower layer?
To mitigate this I am thinking of making the timeout as maybe 5 or 10s