Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-127529: Correct asyncio.selector_events.BaseSelectorEventLoop._accept_connection's behaviour for handling ConnectionAbortedError#127532
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…tLoop._accept_connection's behaviour for handling ConnectionAbortedError
jb2170 commentedDec 2, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Force pushes to correct typo / my suckiness at reStructuredText |
jb2170 commentedDec 28, 2024
@1st1@asvetlov@kumaraditya303@willingc Trivial PR to review + merge before the new year / before it fades out of memory? 🚀 |
kumaraditya303 commentedDec 29, 2024
You need to add tests for this. |
…abortederror to test graceful handling of ConnectionAbortedError
jb2170 commentedDec 29, 2024
Hi@kumaraditya303 , thanks for the reply! I've added a test to |
Uh oh!
There was an error while loading.Please reload this page.
Misc/NEWS.d/next/Library/2024-12-02-19-13-19.gh-issue-127529.Pj1Xtf.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Misc/NEWS.d/next/Library/2024-12-02-19-13-19.gh-issue-127529.Pj1Xtf.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
830e106 intopython:mainUh oh!
There was an error while loading.Please reload this page.
…handling `ConnectionAbortedError` (python#127532)Co-authored-by: Kumar Aditya <kumaraditya@python.org>
…handling `ConnectionAbortedError` (python#127532)Co-authored-by: Kumar Aditya <kumaraditya@python.org>
ambv commentedMay 21, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@kumaraditya303 don't we want to backport this to 3.13? WDYT? |
emmatyping commentedDec 14, 2025
@kumaraditya303 I think we still need to backport this, right? Looks like it is blocking the 3.13 backport of#134392 |
Thanks@jb2170 for the PR, and@kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…handling `ConnectionAbortedError` (pythonGH-127532)(cherry picked from commit830e106)Co-authored-by: jb2170 <email@jb2170.com>Co-authored-by: Kumar Aditya <kumaraditya@python.org>
GH-142738 is a backport of this pull request to the3.13 branch. |
kumaraditya303 commentedDec 15, 2025
Thanks for the reminder, I'll get this and the other one backported. |
Uh oh!
There was an error while loading.Please reload this page.
Closes#127529
All good to go.
ConnectionAbortedErrornowcontinues instead ofreturning. Improves OpenBSD performance. Full writeup in the issue.I've left
InterruptedErrorgrouped withBlockingIOErrorto bothreturnearly, instead ofInterruptedErrorcontinueing andBlockingIOErrorreturning.PEP-475 should makeInterruptedErrornever appear right, but hey if it's not broken don't fix it. Best to play it safe with the urgency of signals, especially as asyncio uses them for a wakeup fd.BaseSelectorEventLoop._accept_connectionreturns when it shouldcontinueonConnectionAbortedError#127529