-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
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 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 <[email protected]>
…handling `ConnectionAbortedError` (python#127532) Co-authored-by: Kumar Aditya <[email protected]>
|
@kumaraditya303 don't we want to backport this to 3.13? WDYT? |
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