Skip to content

Add a short timeout to _check_version() requests call #853

@ntjess

Description

@ntjess

Some corporate proxies deny access to pypi.org. In these cases, solara run app.py hangs while it tries to make contact with pypi to check whether its version is up-to-date. Ideally, the call to requests.get() occurs with timeout=1 or something very short & reasonable to prevent inordinate app load times, without requiring an explicit --no-check-version (which is unintuitive without debugging)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions