bpo-43921: Debug test_ssl failures on Windows#26501
bpo-43921: Debug test_ssl failures on Windows#26501vstinner wants to merge 1 commit intopython:mainfrom vstinner:debug_test_ssl
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