Skip to content

Impossible to set connection timeouts without overwriting global state #41

@kalinochkind

Description

@kalinochkind

It is possible to subclass HttpHelper and override getHttpsURLConnection to set connectTimeout and readTimeout on the connection instance. However, httpHelper instance is static, so the only way to change timeouts is to overwrite EmailageClient.httpHelper during initialization. It would be really helpful to be able to configure timeouts without affecting global state

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