Skip to content

Add a timeout to check connection #177

@GaballaGit

Description

@GaballaGit

Per Copilot:
CheckConnection uses http.Get with the default client (no timeout). Since this is called during CLI startup now, a stalled network connection can hang the CLI indefinitely. Consider using an http.Client with a short timeout (and possibly HEAD instead of GET) to keep the CLI responsive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    2 - BEGINNERAn issue where no prerequisite knowledge is requiredapiRelating to the API onlycliRelating to the CLI onlymid prioMid priority, doesn't need to be done immediately but should be picked up soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions