summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMartijn Pieters <mj@zopatista.com>2023-12-20 23:09:01 (GMT)
committerGitHub <noreply@github.com>2023-12-20 23:09:01 (GMT)
commit1ff02385944924db7e683a607da2882462594764 (patch)
tree05a658fb019bc290359c9c3aee69116decdd8f91 /Misc
parenta3e8afe0a3b5868440501edf579d1d4711c0fb18 (diff)
downloadcpython-1ff02385944924db7e683a607da2882462594764.zip
cpython-1ff02385944924db7e683a607da2882462594764.tar.gz
cpython-1ff02385944924db7e683a607da2882462594764.tar.bz2
GH-113214: Fix SSLProto exception handling in SSL-over-SSL scenarios (#113334)
When wrapped, `_SSLProtocolTransport._force_close(exc)` is called just like in the unwrapped scenario `_SelectorTransport._force_close(exc)` or `_ProactorBasePipeTransport._force_close(exc)` would be called, except here the exception needs to be passed through the `SSLProtocol._abort()` method, which didn't accept an exception object. This commit ensures that this path works, in the same way that the uvloop implementation of SSLProto passes on the exception (on which the current implementation of SSLProto is based).
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2023-12-20-21-18-51.gh-issue-113214.JcV9Mn.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-12-20-21-18-51.gh-issue-113214.JcV9Mn.rst b/Misc/NEWS.d/next/Library/2023-12-20-21-18-51.gh-issue-113214.JcV9Mn.rst
new file mode 100644
index 0000000..6db74cd
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-12-20-21-18-51.gh-issue-113214.JcV9Mn.rst
@@ -0,0 +1 @@
+Fix an ``AttributeError`` during asyncio SSL protocol aborts in SSL-over-SSL scenarios.