Skip to content

gh-156166: Fix setting and deleting SSLContext._msg_callback - #156167

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-156166-ssl-msg-callback
Aug 21, 2026
Merged

gh-156166: Fix setting and deleting SSLContext._msg_callback#156167
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-156166-ssl-msg-callback

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 21, 2026

Copy link
Copy Markdown
Member

The setter released the old callback before validating the new value, so a failed assignment or a deletion removed it. Deleting the attribute now raises AttributeError, like for keylog_filename.

The setter released the old callback before validating the new value,
so a failed assignment or a deletion removed it.
@serhiy-storchaka serhiy-storchaka added needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Aug 21, 2026
@serhiy-storchaka serhiy-storchaka added the needs backport to 3.13 bugs and security fixes label Aug 21, 2026
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) August 21, 2026 10:28
@serhiy-storchaka
serhiy-storchaka merged commit 67f4d53 into python:main Aug 21, 2026
106 of 108 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 67f4d53425d4f7df559b4a0ba5bfb66e795854c7 3.14

@bedevere-app

bedevere-app Bot commented Aug 21, 2026

Copy link
Copy Markdown

GH-156171 is a backport of this pull request to the 3.15 branch.

@miss-islington-app

Copy link
Copy Markdown

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 67f4d53425d4f7df559b4a0ba5bfb66e795854c7 3.13

@bedevere-app

bedevere-app Bot commented Aug 21, 2026

Copy link
Copy Markdown

GH-156174 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Aug 21, 2026
@bedevere-app

bedevere-app Bot commented Aug 21, 2026

Copy link
Copy Markdown

GH-156175 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Aug 21, 2026
serhiy-storchaka added a commit that referenced this pull request Aug 21, 2026
…H-156167) (GH-156174)

The setter released the old callback before validating the new value,
so a failed assignment or a deletion removed it.

(cherry picked from commit 67f4d53)
serhiy-storchaka added a commit that referenced this pull request Aug 21, 2026
…H-156167) (GH-156175)

The setter released the old callback before validating the new value,
so a failed assignment or a deletion removed it.

(cherry picked from commit 67f4d53)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant