➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Andrew Collins
Recipients Andrew Collins, christian.heimes
Date 2019-07-29.21:17:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1564435045.14.0.99217067203.issue37710@roundup.psfhosted.org>
In-reply-to
Content
Per the OpenSSL documentation:

"The current thread's error queue must be empty before the TLS/SSL I/O operation is attempted, or SSL_get_error() will not work reliably."

https://www.openssl.org/docs/man1.1.1/man3/SSL_get_error.html

Modules/_ssl.c does clear errors on socket creation, and upon handling an error itself, but does not clear before IO operations that are checked with SSL_get_error.

When using OpenSSL outside of Modules/_ssl.c in the same process context (for example, using libssh through python bindings), this can results in random ssl errors being picked up by Modules/_ssl.c.
History
Date User Action Args
2019-07-29 21:17:25Andrew Collinssetrecipients: + Andrew Collins, christian.heimes
2019-07-29 21:17:25Andrew Collinssetmessageid: <1564435045.14.0.99217067203.issue37710@roundup.psfhosted.org>
2019-07-29 21:17:25Andrew Collinslinkissue37710 messages
2019-07-29 21:17:24Andrew Collinscreate