Hi,

Oh, I found a second bug in the ssl module of Python 2.6. It explains
the test_create_server_ssl() hang in Trollius tests.

2014/1/10 Victor Stinner <[email protected]>:
> test_events.test_create_server_ssl() hangs on my Mac OS 10.8 and
> OpenIndiana VM which both are using Python 2.6 with OpenSSL 0.9.8. The
> test hangs in  _SelectorSslTransport._read_ready().

First, I don't have Mac OS 10.8, but 10.6 aka Snow Leopard. I used
"uname -a" to get the version, but it's the Darwin version, not the
Mac OS X version. platform.platform() of Python uses also the Darwin
version, not the Mac OS version.

This version of Mac OS X includes an old Python release: 2.6.1. This
version contains bugs in the ssl module, especially in SSLSocket
constructor:

* http://bugs.python.org/issue5103
* http://bugs.python.org/issue7943

So I backported the correct SSLSocket constructor in Trollius:

https://bitbucket.org/haypo/trollius/commits/74d15c6bbd6283a7b0837b9b6ce585d00c9c07f0
https://bitbucket.org/haypo/trollius/commits/03f61326a9325c6c3398eda672ae8540234d0359

Victor

Reply via email to