Skip to content

fix tickState polling #199

@miyatakazuya

Description

@miyatakazuya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions