Uh oh!
There was an error while loading. Please reload this page.
gh-148292: Update ssl._SSLSocket for OpenSSL 4 - #149102
Conversation
The _SSLSocket object now remembers if it gets an EOF error. In this case, read(), sendfile() and write() method calls fail with SSLEOFError without calling the underlying OpenSSL function.
Documentation build overview
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| @@ -0,0 +1,7 @@ | |||
| :mod:`ssl`: Update :class:`ssl.SSLSocket` for OpenSSL 4. The class now | |||
| remembers if it gets a :exc:`ssl.SSLEOFError`. In this case, following | |||
| :meth:`~ssl.SSLSocket.read`, :meth:`!sendfile`, :meth:`~ssl.SSLSocket.write`, | |||
There was a problem hiding this comment.
Using :meth:~ssl.SSLSocket.sendfile makes the documentation fails to build. It doesn't work since SSLSocket.sendfile() has no anchor at https://docs.python.org/dev/library/ssl.html#ssl.SSLSocket, but SSLSocket.sendfile() method is documented
Co-authored-by: Gregory P. Smith <greg@krypto.org>
vstinner
commented
Apr 29, 2026
@gpshead: Please review the updated PR. Note: Before, I didn't want to use |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Victor Stinner <vstinner@python.org>
vstinner
commented
Apr 30, 2026
@picnixz: Would you mind to review this change? It would be nice to have OpenSSL 4 support in Python 3.15 beta1 (feature freeze is next Tuesday). |
Uh oh!
There was an error while loading. Please reload this page.
The _SSLSocket object now remembers if it gets an EOF error. In this case, read(), sendfile(), write() and do_handshake method calls fail with SSLEOFError without calling the underlying OpenSSL function. Co-authored-by: Gregory P. Smith <greg@krypto.org> (cherry picked from commit 7b7fa3f)
The _SSLSocket object now remembers if it gets an EOF error. In this case, read(), sendfile(), write() and do_handshake() method calls fail with SSLEOFError without calling the underlying OpenSSL function.