diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-12-21 00:51:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-21 00:51:36 (GMT) |
commit | 192711856bbe88e9dfeee9af00da22189047463e (patch) | |
tree | b917747b389b6949062a0920ec9e9ed0a22e4fb4 /Python/flowgraph.c | |
parent | b01caf1d9d50f07fe8e032f0a1fb76ff6e5e9fd2 (diff) | |
download | cpython-192711856bbe88e9dfeee9af00da22189047463e.zip cpython-192711856bbe88e9dfeee9af00da22189047463e.tar.gz cpython-192711856bbe88e9dfeee9af00da22189047463e.tar.bz2 |
[3.12] GH-113214: Fix SSLProto exception handling in SSL-over-SSL scenarios (GH-113334) (#113339)
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).
(cherry picked from commit 1ff02385944924db7e683a607da2882462594764)
Co-authored-by: Martijn Pieters <mj@zopatista.com>
Diffstat (limited to 'Python/flowgraph.c')
0 files changed, 0 insertions, 0 deletions