Skip to content

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

Merged
miss-islington merged 3 commits into
python:masterfrom
dimaqq:bpo-31122
Aug 15, 2020
Merged

bpo-31122: ssl.wrap_socket() now raises ssl.SSLEOFError rather than OSError when peer closes connection during TLS negotiation#18772
miss-islington merged 3 commits into
python:masterfrom
dimaqq:bpo-31122

Conversation

@dimaqq

@dimaqq dimaqq commented Mar 4, 2020

Copy link
Copy Markdown
Contributor

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

dimaqq commented Mar 13, 2020

Copy link
Copy Markdown
Contributor Author

Please review 🙏

@dimaqq

dimaqq commented Mar 20, 2020

Copy link
Copy Markdown
Contributor Author

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

@miss-islington

Copy link
Copy Markdown
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
Copy Markdown

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

@bedevere-bot

Copy link
Copy Markdown

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

dimaqq commented Oct 1, 2023

Copy link
Copy Markdown
Contributor Author

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