Skip to content

Implement some sane http request timeout #127

@loxs

Description

@loxs

Sometimes my program falls into an "endless wait" mode when the computer sleeps right when a request to twitter is made.

According to hyper docs, no timeout is configured by default: https://docs.rs/hyper/0.14.15/hyper/client/connect/struct.HttpConnector.html#method.set_connect_timeout

I suggest that we either override this by some sane default, or we expose ways for the user to specify it. Or maybe even allow the user to supply their own Hyper HttpConnector, as I would like to configure other options as well.

I am willing to contribute if an agreement is reached on how to approach this.

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