-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-43921: Debug test_ssl failures on Windows #26501
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
DON'T MERGE THIS TEST PR.
I failed to reproduce https://bugs.python.org/issue43921#msg391677 failure locally on my Windows 10 VM. I used the command:
I also ran the same command ( On Windows and Linux, I see that the client manages to write 4 bytes and then get a SSL error on the first read() call. |
Maybe the issue is that write() and read() results are not checked by the test. |
Seen on Windows: the first read() returned an empty string, but the test still pass since the second write() raised an SSL exception.
|
If I remove the first read() to only keep the second one, I can more easily reproduce the issue on Windows. The second read() returned an empty string and the test failed because no SSL exception was raised:
The question is now why read() doesn't return an empty string on Linux, but it does on Windows. |
read() error
I saw (A) on Windows and Linux. I only saw (B) on Windows. write() error
I only saw (C) on Linux. I only saw (D) on Windows. I both cases, it's |
I created PR #26502 to fix the issue. |
DON'T MERGE THIS TEST PR.
https://bugs.python.org/issue43921