locust
locust copied to clipboard
Support for requests >=2.32.5 (compatibility with LangChain/AI ecosystem)
Prerequisites
- [x] I am using the latest version of Locust
- [x] I am suggesting a new feature, not asking a question
Description
Locust currently restricts requests to <2.32.5, which conflicts with the modern AI/ML ecosystem (LangChain, Ragas, etc.) that requires requests >=2.32.5.
Current Behavior
# [pyproject.toml](http://_vscodecontentref_/0) or setup.py
requests = ">=2.32.2,<2.32.5"
Concurrent SSL context performance in python 3.12+ is very bad. Requests 2.32.2-2.32.4 had a fix for that but it was removed in .5 (https://github.com/psf/requests/pull/6767)
We need to fix that first, either by implementing their fix in locust and/or disabling ssl validation by default. I thought we had a ticket for it somewhere but I cant find it right now...