-
-
Notifications
You must be signed in to change notification settings - Fork 32k
test_ftplib: test_storlines() fails randomly #109845
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
Comments
I found the cause and am writing a fix. |
I looked at the issue but I didn't see anything obvious 🤷🏻♂️ Also, I got scared when I saw that the server is implemented with asyncore, the zombie module 😱 |
recv() can return partial data cut in the middle of a multibyte character. Test raw binary data instead of data incorrectly decoded by parts.
recv() can return partial data cut in the middle of a multibyte character. Test raw binary data instead of data incorrectly decoded by parts.
Other unstable tests are test_storbinary and test_encoding_param. I changed also test_retrbinary, test_retrbinary_rest and test_transfer which potentially can fail for same reason, although I cannot reproduce this. |
recv() can return partial data cut in the middle of a multibyte character. Test raw binary data instead of data incorrectly decoded by parts.
…9912) recv() can return partial data cut in the middle of a multibyte character. Test raw binary data instead of data incorrectly decoded by parts. (cherry picked from commit 2ef2fff) Co-authored-by: Serhiy Storchaka <[email protected]>
…9912) recv() can return partial data cut in the middle of a multibyte character. Test raw binary data instead of data incorrectly decoded by parts. (cherry picked from commit 2ef2fff) Co-authored-by: Serhiy Storchaka <[email protected]>
…GH-109920) recv() can return partial data cut in the middle of a multibyte character. Test raw binary data instead of data incorrectly decoded by parts. (cherry picked from commit 2ef2fff) Co-authored-by: Serhiy Storchaka <[email protected]>
…9912) recv() can return partial data cut in the middle of a multibyte character. Test raw binary data instead of data incorrectly decoded by parts.
Thanks for the fix @serhiy-storchaka. |
…#109919) gh-109845: Make test_ftplib more stable under load (GH-109912) recv() can return partial data cut in the middle of a multibyte character. Test raw binary data instead of data incorrectly decoded by parts. (cherry picked from commit 2ef2fff) Co-authored-by: Serhiy Storchaka <[email protected]>
…9912) recv() can return partial data cut in the middle of a multibyte character. Test raw binary data instead of data incorrectly decoded by parts.
s390x RHEL7 Refleaks 3.x:
build: https://buildbot.python.org/all/#/builders/129/builds/890
I can reproduce the failure locally on Linux with command:
Linked PRs
The text was updated successfully, but these errors were encountered: