Like everyday had subscribed to instruments, since one api keys works for 2 WS connections i have 2 apps using 1 WS each, although re-connection code is written but today it is disconnecting very frequently compared to rest days (6-7 times from 9am to 11am). Also Do threaded WS connection dont get killed at day end as the access_token gets expired? wanted to know as i doubt they are interfering please help
my current Thread structure:
->worker Thread (non daemon,dies after work done)
-> kws (threaded=True) # dont know about this, if it keeps ws open forever
Main Thread die (after creating thread)
Currently I dont use ws.close() every day at 3.30, i directly kill the child thread, i am doubting the WS connection is stacking.
As you said "re-auth happens around 07:30AM every day that filters out all invalid token connections", what might had gone wrong as i haven't changed a line of code i am worried as it takes 0-3 seconds to reconnect
Connection error: 1006 - connection was closed uncleanly (None)
Connection closed: 1006 - connection was closed uncleanly (None)
It has been months since I changed the code, this is the first time I am facing a disconnection, also my algo is hosted in AWS.
We checked the logs, and don't see any major disconnection drop. We are evaluating more on this, meanwhile do let us know if you are seeing any specific disconnection pattern here.