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

Download speed throttling for HttpClient/FastHttpClient? #2973

Open
2 tasks done
flbraun opened this issue Nov 8, 2024 · 1 comment
Open
2 tasks done

Download speed throttling for HttpClient/FastHttpClient? #2973

flbraun opened this issue Nov 8, 2024 · 1 comment

Comments

@flbraun
Copy link

flbraun commented Nov 8, 2024

Prerequisites

Description

I'm currently building a test suite where Locust emulates a bunch of low-powered IoT devices that won't reach high download speeds (<2MB/s).
The problem here is that Locust will happily use all of the worker host's available bandwidth. This implicates that - from my service's perspective - the requests finish a lot faster than they realistically would, and thus the connections won't need to be held as long.
This is probably a very niche issue, but for my case it's quite essential.

There are a couple of throttling implementations around for requests. Most of them work around response streaming. I'm sure there are solutions for geventhttpclient as well.

Would this be a welcome addition to Locust or do you consider it too niche? If not I'll see if I can fit a contributioninto my employer's budget.

@cyberw
Copy link
Collaborator

cyberw commented Nov 8, 2024

That would be super useful and a welcome contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants