◐ Shell
clean mode source ↗

[3.9] bpo-30064: Fix slow asyncio sock test (GH-20868) by miss-islington · Pull Request #20869 · python/cpython

Using a log2n way to fill a much smaller buffer, and receiving in a cleaner way with EOF.

The failing test was reproducible using the following command thanks to @aeros :

./python -m test test_asyncio.test_sock_lowlevel --match test_sock_client_racing -j100 -F -v

According to test results, we may still need to bump the timeout:

https://github.com/python/cpython/blob/5aad027db9618f22f6fa2274e05dd50f928d2ed7/Lib/test/test_asyncio/test_sock_lowlevel.pyGH-L256-L257
(cherry picked from commit 8f04a84)

Co-authored-by: Fantix King fantix.king@gmail.com

https://bugs.python.org/issue30064