Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.11] GH-113214: Fix SSLProto exception handling in SSL-over-SSL scenarios (GH-113334) #113340

Merged
merged 1 commit into from
Dec 21, 2023

Commits on Dec 20, 2023

  1. pythonGH-113214: Fix SSLProto exception handling in SSL-over-SSL scen…

    …arios (pythonGH-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).
    (cherry picked from commit 1ff0238)
    
    Co-authored-by: Martijn Pieters <mj@zopatista.com>
    mjpieters authored and miss-islington committed Dec 20, 2023
    Configuration menu
    Copy the full SHA
    46cd200 View commit details
    Browse the repository at this point in the history