]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-30064: Fix slow asyncio sock test (GH-20868)
authorFantix King <fantix.king@gmail.com>
Sun, 14 Jun 2020 07:43:57 +0000 (02:43 -0500)
committerGitHub <noreply@github.com>
Sun, 14 Jun 2020 07:43:57 +0000 (00:43 -0700)
commit8f04a84755babe516ebb5304904ea7c15b865c80
tree9e229427faaafa99aadbd0b3b03513dd316abdee
parent5aad027db9618f22f6fa2274e05dd50f928d2ed7
bpo-30064: Fix slow asyncio sock test (GH-20868)

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 :

```bash
./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.py#L256-L257
Lib/test/test_asyncio/test_sock_lowlevel.py