]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-148292: Update _ssl._SSLSocket for OpenSSL 4 (#149102)
authorVictor Stinner <vstinner@python.org>
Mon, 4 May 2026 11:52:57 +0000 (13:52 +0200)
committerGitHub <noreply@github.com>
Mon, 4 May 2026 11:52:57 +0000 (13:52 +0200)
commit7b7fa3f9bf3d7cdf3eb669d02b386e05b39c402a
tree1b7c9a5b41815dbf80a647bc64045fd63fbefbf9
parentbc7c102f3462a9f014f3ac2546acfb471b2a7eae
gh-148292: Update _ssl._SSLSocket for OpenSSL 4 (#149102)

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>
Lib/test/test_ssl.py
Misc/NEWS.d/next/Library/2026-04-28-17-47-55.gh-issue-148292.oIq3ml.rst [new file with mode: 0644]
Modules/_ssl.c