egg-mode icon indicating copy to clipboard operation
egg-mode copied to clipboard

Implement some sane http request timeout

Open loxs opened this issue 4 years ago • 0 comments

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.

loxs avatar Nov 26 '21 07:11 loxs