Error when sending large number of requests to curl_cffi when using locust for pressure testing #504
Unanswered
GeraldWhitehead
asked this question in
Q&A
Replies: 1 comment 11 replies
-
Did you set |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I use locust for pressure testing, I use curl_cffi to send the request because I want to simulate fingerprinting. But when I use curl_cffi to send request, the qps can't go up, finally I added gevent.get_hub().threadpool.maxsize = 500 in the code, the qps can go up, but after a while, it will give me an error failed to send heartbeat, setting state to missing. (This error is reported by locust, but for the same request, there is no problem using the requests library). During the execution, the machine has thousands of threads (only dozens using requests).

Can you please tell me how I can make the change, I don't know why this is happening?
I also asked locust and waiting for his reply. But I suspect that it's more the use of curl_cffi to send the request that's causing the problem (since there's no problem with requests)
Beta Was this translation helpful? Give feedback.
All reactions