[issue25940] SSL tests failed due to expired svn.python.org SSL certificate
Martin Panter
report at bugs.python.org
Tue Jan 5 21:18:24 EST 2016
Martin Panter added the comment:
Koobs: What thing are you suggesting to mock? The remote server perhaps, which is what I want to do too?
Here is a patch that implements my local SSL server idea by reusing ThreadedEchoServer.
There is one problem with local-server.patch, and I don’t know how to fix it properly. At the end of test_bio_handshake() and test_bio_read_write_data(), the unwrap() call keeps raising SSL_ERROR_SYSCALL and the test hangs in an infinite loop. I could work around this by making the server call unwrap() before shutting the socket down. But it would be better to fix ssl_io_loop() if anyone understands what is going wrong.
----------
Added file: http://bugs.python.org/file41512/local-server.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25940>
_______________________________________
More information about the Python-bugs-list
mailing list