-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-127529: Correct asyncio.selector_events.BaseSelectorEventLoop._accept_connection's behaviour for handling ConnectionAbortedError #127532
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
Conversation
…tLoop._accept_connection's behaviour for handling ConnectionAbortedError
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 |
Misc/NEWS.d/next/Library/2024-12-02-19-13-19.gh-issue-127529.Pj1Xtf.rst
Outdated
Show resolved
Hide resolved
Misc/NEWS.d/next/Library/2024-12-02-19-13-19.gh-issue-127529.Pj1Xtf.rst
Outdated
Show resolved
Hide resolved
…handling `ConnectionAbortedError` (python#127532) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
…handling `ConnectionAbortedError` (python#127532) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
@kumaraditya303 don't we want to backport this to 3.13? WDYT? |
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