Summary of Issue:
In Control.tsx we fetch the tickState endpoint at 1000ms. This is fine for localhost testing as the HTTP server responds with ease, but in practice this causes the frontend to query the endpoint even if a response was never received. The result is that several requests hang, taking up the browser connection limit (i think ~6).
Suggested Fix:
Make tickState polling more robust, adding a timeout + only fetching again if previous request has responded.
We use setInterval for several other endponts /api/plane/telemetry, /api/connections, and /api/obc_connection but these are fine since the go backend is more consistent than the remote server.
#nomorevibecode
Summary of Issue:
In
Control.tsxwe fetch thetickStateendpoint at 1000ms. This is fine for localhost testing as the HTTP server responds with ease, but in practice this causes the frontend to query the endpoint even if a response was never received. The result is that several requests hang, taking up the browser connection limit (i think ~6).Suggested Fix:
Make tickState polling more robust, adding a timeout + only fetching again if previous request has responded.