Skip to content

[3.7] bpo-33353: test_asyncio uses smaller sendfile data (GH-7083)#7084

Closed
miss-islington wants to merge 1 commit intopython:3.7from
miss-islington:backport-2932755-3.7
Closed

[3.7] bpo-33353: test_asyncio uses smaller sendfile data (GH-7083)#7084
miss-islington wants to merge 1 commit intopython:3.7from
miss-islington:backport-2932755-3.7

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented May 23, 2018

bpo-32622, bpo-33353: sendfile() tests of test_asyncio use socket
buffers of 1 kB "to test on relative small data sets". Send only
160 KiB rather 10 MB to make the test much faster.

Shrink also SendfileBase.DATA from 1600 KiB to 160 KiB.

On Linux, 3 test_sock_sendfile_mix_with_regular_send() runs now take
less than 1 second, instead of 18 seconds.

On FreeBSD, the 3 tests didn't hang, but took 3 minutes. Now
the 3 tests pass in less than 1 seconds.
(cherry picked from commit 2932755)

Co-authored-by: Victor Stinner [email protected]

https://bugs.python.org/issue33353

bpo-32622, bpo-33353: sendfile() tests of test_asyncio use socket
buffers of 1 kB "to test on relative small data sets". Send only
160 KiB rather 10 MB to make the test much faster.

Shrink also SendfileBase.DATA from 1600 KiB to 160 KiB.

On Linux, 3 test_sock_sendfile_mix_with_regular_send() runs now take
less than 1 second, instead of 18 seconds.

On FreeBSD, the 3 tests didn't hang, but took 3 minutes. Now
the 3 tests pass in less than 1 seconds.
(cherry picked from commit 2932755)

Co-authored-by: Victor Stinner <[email protected]>
Copy link
Copy Markdown
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@miss-islington
Copy link
Copy Markdown
Contributor Author

@vstinner: Backport status check is done, and it's a failure ❌ .

@vstinner
Copy link
Copy Markdown
Member

Replaced by PR #7087 which combines my following test_asyncio fix.

@vstinner vstinner closed this May 24, 2018
@miss-islington miss-islington deleted the backport-2932755-3.7 branch May 24, 2018 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants