Author Ilya.Kulakov
Recipients Ilya.Kulakov, christian.heimes
Date 2016-12-13.06:55:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1481612101.72.0.228099199654.issue28958@psf.upfronthosting.co.za>
In-reply-to
Content
When SSLContext cannot be created, python raises an SSLError exception with "failed to allocate SSL context".

https://hg.python.org/cpython/file/4def2a2901a5/Modules/_ssl.c#l2260

This is completely useless to debug the error. In fact many errors raised from _ssl.c are non-helpful.

Python's SSLError should be extended to include comprehensive information about OpenSSL's error stack which can be extracted with `ERR_get_error_line`.
History
Date User Action Args
2016-12-13 06:55:01Ilya.Kulakovsetrecipients: + Ilya.Kulakov, christian.heimes
2016-12-13 06:55:01Ilya.Kulakovsetmessageid: <1481612101.72.0.228099199654.issue28958@psf.upfronthosting.co.za>
2016-12-13 06:55:01Ilya.Kulakovlinkissue28958 messages
2016-12-13 06:55:01Ilya.Kulakovcreate