You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered intermittent httpx.ReadError exceptions when using high concurrency values with httpx.AsyncClient. This issue does not occur when using aiohttp with similar concurrency levels.
Reproduction Steps
Set up a simple FastAPI server with a 3-second delay (code provided below).
Run the httpx client script (provided below) with high concurrency (CONCURRENT_REQUESTS = 300, TOTAL_REQUESTS = 1000).
Observe intermittent httpx.ReadError exceptions.
Replace the httpx client with the aiohttp client (code provided) and run with the same concurrency settings.
Observe that the aiohttp client completes without errors.
Issue Description
I've encountered intermittent httpx.ReadError exceptions when using high concurrency values with httpx.AsyncClient. This issue does not occur when using aiohttp with similar concurrency levels.
Reproduction Steps
Environment
Server code
Httpx client code
AIOHttp client code
The text was updated successfully, but these errors were encountered: