-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Avoid creating handler waiter until shutdown #9168
Conversation
Every request created _handler_waiter. Instead only create it when we need to wait for graceful shutdown
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #9168 +/- ##
=======================================
Coverage 98.31% 98.31%
=======================================
Files 107 107
Lines 34485 34489 +4
Branches 4095 4096 +1
=======================================
+ Hits 33903 33907 +4
Misses 411 411
Partials 171 171
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Backport to 3.10: 💚 backport PR created✅ Backport PR branch: Backported as #9210 🤖 @patchback |
(cherry picked from commit 5e15ea6)
Backport to 3.11: 💚 backport PR created✅ Backport PR branch: Backported as #9211 🤖 @patchback |
(cherry picked from commit 5e15ea6)
What do these changes do?
Every request created
_handler_waiter. Instead only create it when we need to wait for graceful shutdown. Avoids one future creation for every request if we are not shutting down.Are there changes in behavior for the user?
no
Is it a substantial burden for the maintainers to support this?
no
related issue #2779
profile
before

after
