GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — [3.9] bpo-41682: fixed flaky test test_sendfile_close_peer_in_the_middle_of_receiving (GH-30845) by miss-islington · Pull Request #30861 · python/cpython Conversation
|
|
@kumaraditya303 and @pablogsal: Status check is done, and it's a failure ❌ . |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@kumaraditya303 and @pablogsal: Status check is done, and it's a success ✅ . |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@kumaraditya303 and @pablogsal: Status check is done, and it's a success ✅ . |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@vstinner: Please replace |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| # 128 KiB plus small unaligned to buffer chunk | ||
| DATA = b"SendfileBaseData" * (1024 * 8 + 1) | ||
|
|
||
| # 256 KiB plus small unaligned to buffer chunk | ||
| # Newer versions of Windows seems to have increased its internal | ||
| # buffer and tries to send as much of the data as it can as it | ||
| # has some form of buffering for this which is less than 256KiB | ||
| # on newer server versions and Windows 11. | ||
| # So DATA should be larger than 256 KiB to make this test reliable. | ||
| DATA = b"x" * (1024 * 256 + 1) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I keep coming back to this. I don't think it's worth changing anything (too much churn), but I would still like to point out that the original code had 16 bytes at the end of the 128 kb; the new code has only one extra byte after the 256 kb.
Also, this change affects almost all tests in this file, rather than just the one flaky test.
Finally, the use of "SendfileBaseData" as the dummy data seemed to be intentional to help debugging the test (e.g. test_sock_sendfile_mix_with_regular_send).
Just making sure you were aware of all these. :-)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I didn't read the original PR. I only helped to backport the change because IMO it's better to run a test than skipping it in 3.9 and 3.10 branch.
@kumaraditya303: Do you want to write a PR to make changes suggested by @gvanrossum?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…_receiving (pythonGH-30845) (python#30861) (cherry picked from commit 1c705fd) Co-authored-by: Kumar Aditya <[email protected]> Co-authored-by: Kumar Aditya <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.