Hi,
We’re seeing a rather unpredictable behaviour/pattern at startup. In summary;
When we start our binance gateway, we establish a connection to
‘wss://fstream.binance.com/stream’
The connection is established and we then go into our connection management loop whereby if we hear nothing from binance for a minute, we enter a disconnect/reconnect loop until we get reconnected and wait for data again (1 minute).
Now the problem ONLY happens (randomly) at startup. Once we are connected everything works fine. The problem isnt consistently repeatable. The only option availailable is to repeatedly restart the gateway until the boot cycle (connect + receive data in less than a minute) completes ok. This is production code and has been working for a long time.
Can anybody help diagnosing or think of anything that may be the root cause? I see nothing wrong but am not sure. I presume as part of the gateway → websocket → binance communications, we need to be in some sort of a ping-pong loop (keepalive). Thats correct, yes?
Thanks
Graham