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 lower speed limit to full async body retrievals. #2033

Closed
wants to merge 1 commit into from

Conversation

gibbz00
Copy link
Contributor

@gibbz00 gibbz00 commented Nov 12, 2023

Background: hyperium/hyper#3402

No breaking changes were added and this time I made sure to not touch changelog.md :3

(Note: added dependency is only a dev-dependency.)

src/async_impl/response.rs Outdated Show resolved Hide resolved
@seanmonstar
Copy link
Owner

In #2237, we added the ability to timeout on very slow reads. Importantly, it applies to all reads (where as this PR applies just to bytes()).

It should be possible for someone to implement a "speed limit" outside of reqwest, using the streaming methods. Implementing inside reqwest is still a possibility, in the future.

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.

2 participants