Skip to content

change default Client timeout to 30 seconds#195

Merged
seanmonstar merged 1 commit intomasterfrom
default-timeout
Aug 30, 2017
Merged

change default Client timeout to 30 seconds#195
seanmonstar merged 1 commit intomasterfrom
default-timeout

Conversation

@seanmonstar
Copy link
Owner

Closes #181

@seanmonstar seanmonstar merged commit a02b388 into master Aug 30, 2017
@seanmonstar seanmonstar deleted the default-timeout branch August 30, 2017 23:24
MadLittleMods added a commit to element-hq/synapse that referenced this pull request Mar 6, 2026
There is no timeout.

In Synapse, we're using the `async_impl` of `reqwest` which says ["Default is no timeout"](https://github.com/seanmonstar/reqwest/blob/fa74a8b835b2f194253cebdab8d049c0e5d23af3/src/async_impl/client.rs#L1429-L1438).

`reqwest` does have a 30 second default timeout but only for the `blocking` client (["Default is 30 seconds."](https://github.com/seanmonstar/reqwest/blob/fa74a8b835b2f194253cebdab8d049c0e5d23af3/src/blocking/client.rs#L383-L394), [source](https://github.com/seanmonstar/reqwest/blob/fa74a8b835b2f194253cebdab8d049c0e5d23af3/src/blocking/client.rs#L1496-L1504))

> A default timeout for `reqwest::Client` is used set to 30 seconds (#181)
>
> *-- [`seanmonstar/reqwest` -> `CHANGELOG.md#v080`](https://github.com/seanmonstar/reqwest/blob/fa74a8b835b2f194253cebdab8d049c0e5d23af3/CHANGELOG.md#v080)*

(tracked by seanmonstar/reqwest#181, added in seanmonstar/reqwest#195)

I've also tested this locally and can confirm the Synapse Rust HTTP client doesn't have any timeout at the moment.
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

Successfully merging this pull request may close these issues.

1 participant