locust icon indicating copy to clipboard operation
locust copied to clipboard

Support for requests >=2.32.5 (compatibility with LangChain/AI ecosystem)

Open UFEQ1337 opened this issue 1 month ago • 1 comments

Prerequisites

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"

UFEQ1337 avatar Dec 04 '25 08:12 UFEQ1337

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...

cyberw avatar Dec 04 '25 09:12 cyberw