Implement some sane http request timeout
Opened this issue · 0 comments
loxs commented
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.