Skip to content

[3.9] bpo-30064: Fix slow asyncio sock test (GH-20868) #20869

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 14, 2020

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jun 14, 2020

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 [email protected]

https://bugs.python.org/issue30064

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 8f04a84)

Co-authored-by: Fantix King <[email protected]>
@miss-islington
Copy link
Contributor Author

@fantix: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 83cd968 into python:3.9 Jun 14, 2020
@miss-islington miss-islington deleted the backport-8f04a84-3.9 branch June 14, 2020 08:08
@miss-islington
Copy link
Contributor Author

@fantix: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington
Copy link
Contributor Author

@fantix: Status check is done, and it's a success ✅ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants