bpo-33353: test_asyncio set SO_SNDBUF after connect#7086
Merged
vstinner merged 1 commit intopython:masterfrom May 24, 2018
vstinner:test_asyncio_sndbuf
Merged
bpo-33353: test_asyncio set SO_SNDBUF after connect#7086vstinner merged 1 commit intopython:masterfrom vstinner:test_asyncio_sndbuf
vstinner merged 1 commit intopython:masterfrom
vstinner:test_asyncio_sndbuf
Conversation
vstinner
added a commit
that referenced
this pull request
May 24, 2018
* bpo-33353: test_asyncio uses smaller sendfile data (#7083) 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) * bpo-33353: test_asyncio set SO_SNDBUF after connect (GH-7086) bpo-32622, bpo-33353: On macOS, sock.connect() changes the SO_SNDBUF value. Only set SO_SNDBUF and SO_RCVBUF buffer sizes once a socket is connected or binded, not before. (cherry picked from commit b97de3d)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bpo-32622, bpo-33353: On macOS, sock.connect() changes (resets?) the
SO_SNDBUF value. So only set SO_SNDBUF and SO_RCVBUF buffer sizes
once a socket is connected or binded, not before.
https://bugs.python.org/issue33353