Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement some sane http request timeout #127

Open
loxs opened this issue Nov 26, 2021 · 0 comments
Open

Implement some sane http request timeout #127

loxs opened this issue Nov 26, 2021 · 0 comments

Comments

@loxs
Copy link

loxs commented Nov 26, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant