Skip to content

bpo-31122: ssl.wrap_socket() now raises ssl.SSLEOFError rather than OSError when peer closes connection during TLS negotiation #18772

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

Merged
merged 3 commits into from
Aug 15, 2020

Conversation

dimaqq
Copy link
Contributor

@dimaqq dimaqq commented Mar 4, 2020

bpo-31122: ssl.wrap_socket() now raises ssl.SSLEOFError rather than OSError when peer closes connection during TLS negotiation

Reproducer: http://tiny.cc/f4ztnz (tiny url because some bot keeps renaming b.p.o.-nnn as bpo links)

Automerge-Triggered-By: @gpshead

@dimaqq
Copy link
Contributor Author

dimaqq commented Mar 13, 2020

Please review 🙏

@dimaqq
Copy link
Contributor Author

dimaqq commented Mar 20, 2020

@tiran are you around to review this pull request? 🙏

@miss-islington
Copy link
Contributor

Thanks @dimaqq for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 15, 2020
…SError when peer closes connection during TLS negotiation (pythonGH-18772)

[bpo-31122](): ssl.wrap_socket() now raises ssl.SSLEOFError rather than OSError when peer closes connection during TLS negotiation

Reproducer: http://tiny.cc/f4ztnz (tiny url because some bot keeps renaming b.p.o.-nnn as bpo links)
(cherry picked from commit 495bd03)

Co-authored-by: Dima Tisnek <dimaqq@gmail.com>
@bedevere-bot
Copy link

GH-21888 is a backport of this pull request to the 3.9 branch.

@bedevere-bot
Copy link

GH-21889 is a backport of this pull request to the 3.8 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 15, 2020
…SError when peer closes connection during TLS negotiation (pythonGH-18772)

[bpo-31122](): ssl.wrap_socket() now raises ssl.SSLEOFError rather than OSError when peer closes connection during TLS negotiation

Reproducer: http://tiny.cc/f4ztnz (tiny url because some bot keeps renaming b.p.o.-nnn as bpo links)
(cherry picked from commit 495bd03)

Co-authored-by: Dima Tisnek <dimaqq@gmail.com>
miss-islington added a commit that referenced this pull request Aug 15, 2020
…SError when peer closes connection during TLS negotiation (GH-18772)

[bpo-31122](): ssl.wrap_socket() now raises ssl.SSLEOFError rather than OSError when peer closes connection during TLS negotiation

Reproducer: http://tiny.cc/f4ztnz (tiny url because some bot keeps renaming b.p.o.-nnn as bpo links)
(cherry picked from commit 495bd03)

Co-authored-by: Dima Tisnek <dimaqq@gmail.com>
miss-islington added a commit that referenced this pull request Aug 15, 2020
…SError when peer closes connection during TLS negotiation (GH-18772)

[bpo-31122](): ssl.wrap_socket() now raises ssl.SSLEOFError rather than OSError when peer closes connection during TLS negotiation

Reproducer: http://tiny.cc/f4ztnz (tiny url because some bot keeps renaming b.p.o.-nnn as bpo links)
(cherry picked from commit 495bd03)

Co-authored-by: Dima Tisnek <dimaqq@gmail.com>
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Aug 20, 2020
…SError when peer closes connection during TLS negotiation (pythonGH-18772)

[bpo-31122](): ssl.wrap_socket() now raises ssl.SSLEOFError rather than OSError when peer closes connection during TLS negotiation

Reproducer: http://tiny.cc/f4ztnz (tiny url because some bot keeps renaming b.p.o.-nnn as bpo links)
xzy3 pushed a commit to xzy3/cpython that referenced this pull request Oct 18, 2020
…SError when peer closes connection during TLS negotiation (pythonGH-18772)

[bpo-31122](): ssl.wrap_socket() now raises ssl.SSLEOFError rather than OSError when peer closes connection during TLS negotiation

Reproducer: http://tiny.cc/f4ztnz (tiny url because some bot keeps renaming b.p.o.-nnn as bpo links)
@dimaqq
Copy link
Contributor Author

dimaqq commented Oct 1, 2023

I see that tiny URL expired, here's the link to the reproducer if someone needs it:
https://github.com/dimaqq/bpo-31122

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.

6 participants