Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
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 |
@1st1@asvetlov@kumaraditya303@willingc Trivial PR to review + merge before the new year / before it fades out of memory? 🚀 |
You need to add tests for this. |
…abortederror to test graceful handling of ConnectionAbortedError
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? |
Uh oh!
There was an error while loading.Please reload this page.
Closes#127529
All good to go.
ConnectionAbortedError
nowcontinue
s instead ofreturn
ing. Improves OpenBSD performance. Full writeup in the issue.I've left
InterruptedError
grouped withBlockingIOError
to bothreturn
early, instead ofInterruptedError
continue
ing andBlockingIOError
return
ing.PEP-475 should makeInterruptedError
never 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_connection
return
s when it shouldcontinue
onConnectionAbortedError
#127529