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

Add option to set write timeout #2403

Open
link2xt opened this issue Aug 25, 2024 · 0 comments
Open

Add option to set write timeout #2403

link2xt opened this issue Aug 25, 2024 · 0 comments

Comments

@link2xt
Copy link
Contributor

link2xt commented Aug 25, 2024

This feature was added at some point and #62 clearly has been setting write timeout.

But now I am looking at reqwest 0.12.7 and there are only options to set read timeout, connect timeout and request timeout. This does not allow to e.g. upload a large file via POST request, because in this case I cannot set request timeout in advance as request may take an hour and write operation may get stuck if the server stops reading from the socket for some reason.

Grepping the source code for write_timeout reveals only this test which sets request timeout:

fn write_timeout_large_body() {

There is a similar issue #870

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