diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-06-14 08:08:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-14 08:08:08 (GMT) |
commit | 83cd968f5cc59ad60b665080087f50fefac17a07 (patch) | |
tree | d4df54e06fe7c4692f27537757340592984940b9 /Python/errors.c | |
parent | 37c9fc5baa29d28c6809807b8f06444126760928 (diff) | |
download | cpython-83cd968f5cc59ad60b665080087f50fefac17a07.zip cpython-83cd968f5cc59ad60b665080087f50fefac17a07.tar.gz cpython-83cd968f5cc59ad60b665080087f50fefac17a07.tar.bz2 |
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.pyGH-L256-L257
(cherry picked from commit 8f04a84755babe516ebb5304904ea7c15b865c80)
Co-authored-by: Fantix King <fantix.king@gmail.com>
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions