-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
bpo-33353: test_asyncio use set_write_buffer_limits() #7200
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
Conversation
Use transport.set_write_buffer_limits() in sendfile tests of test_asyncio to make sure that the protocol is paused after sending 1024 bytes. Previously, test_sendfile_fallback_close_peer_in_the_middle_of_receiving() failed on FreeBSD if the DATA was smaller than the default limit of 64 KiB.
Crap, a test failed on AppVeyor:
|
... and the Travis CI job fails on test_asyncio.test_stdin_broken_pipe https://bugs.python.org/issue33531 and test_multiprocessing_forkserver.test_ignore(): https://bugs.python.org/issue33532 :-( Two failures unrelated to my change... |
* Windows: use 128 KiB of data, instead of 64 KiB, to workaround issues on selector and proactor event loops * FreeBSD: use 4 KiB, instead of 1 KiB, for the buffer size
With "Fix sendfile tests on Windows, commit 3758248":
Timings:
Once, sendfile tests took longer than 1 min on Windows. I interrupted the tests to check that I was on the correct branch, but then I was unable to reproduce the slowdown... Another strange issue... |
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
GH-7202 is a backport of this pull request to the 3.7 branch. |
Use transport.set_write_buffer_limits() in sendfile tests of test_asyncio to make sure that the protocol is paused after sending 4 KiB. Previously, test_sendfile_fallback_close_peer_in_the_middle_of_receiving() failed on FreeBSD if the DATA was smaller than the default limit of 64 KiB. (cherry picked from commit 9551f77) Co-authored-by: Victor Stinner <[email protected]>
Use transport.set_write_buffer_limits() in sendfile tests of test_asyncio to make sure that the protocol is paused after sending 4 KiB. Previously, test_sendfile_fallback_close_peer_in_the_middle_of_receiving() failed on FreeBSD if the DATA was smaller than the default limit of 64 KiB. (cherry picked from commit 9551f77) Co-authored-by: Victor Stinner <[email protected]>
Use transport.set_write_buffer_limits() in sendfile tests of
test_asyncio to make sure that the protocol is paused after sending
1024 bytes. Previously,
test_sendfile_fallback_close_peer_in_the_middle_of_receiving() failed
on FreeBSD if the DATA was smaller than the default limit of 64 KiB.
https://bugs.python.org/issue33353