]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-140795: Remove 'exc' field in SSLObject (gh-143491)
authorSam Gross <colesbury@gmail.com>
Mon, 12 Jan 2026 17:14:13 +0000 (12:14 -0500)
committerGitHub <noreply@github.com>
Mon, 12 Jan 2026 17:14:13 +0000 (17:14 +0000)
commit7d155d7915dcb46f0b900010b11804c1c0da0719
tree7065ac728d572895770f47354663fb5eb80f25e1
parent1de46715ec50c7ae0b8e8671287239771c121e68
gh-140795: Remove 'exc' field in SSLObject (gh-143491)

The 'exc' field was used by our debug SSL callbacks. Keep the exception
in the normal per-thread state to avoid shared mutable state between
threads.

This also avoids a reference count leak if the Python callback raised an
exception because it can be called multiple times per SSL operation.
Lib/test/test_ssl.py
Modules/_ssl.c
Modules/_ssl/debughelpers.c