Skip to content

TestClient slows with multiple calls to websocket_connect #2570

Discussion options

You must be logged in to vote

Hi! We've noticed the exact same issue here: slowdowns on websocket tests that are particularly noticeable on one specific machine ( in our case Linux 5.15.0-94-generic #104-Ubuntu). All of our websocket tests are performed with two websockets, so I did not think quantity of websocket connections would matter, but it clearly does.

I can verify everything here, though I too haven't been able to identify exactly why particular machines are more susceptible than others. Are the machines you've experienced less/no slowdown on all Windows machines by chance? That has certainly been our experience.

To my knowledge, asyncio.sleep(0) is often interpreted as 'yield to another task', but there is n…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@NPrescott
Comment options

Answer selected by Kludex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants