-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
add example of setting network interface in custom socket creation #10962
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
add example of setting network interface in custom socket creation #10962
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #10962 +/- ##
=======================================
Coverage 98.76% 98.76%
=======================================
Files 129 129
Lines 39541 39541
Branches 2185 2185
=======================================
+ Hits 39051 39054 +3
+ Misses 342 339 -3
Partials 148 148
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
CodSpeed Performance ReportMerging #10962 will not alter performanceComparing Summary
|
Thanks @Cycloctane |
Backport to 3.12: 💚 backport PR created✅ Backport PR branch: Backported as #10966 🤖 @patchback |
…10962) Co-authored-by: J. Nick Koston <[email protected]> (cherry picked from commit 84decfe)
…terface in custom socket creation (#10966) Co-authored-by: Cycloctane <[email protected]> Co-authored-by: J. Nick Koston <[email protected]> closes #7132
What do these changes do?
Some users may want to specific network interface used by client session (as in #6383 and #7132 ). In aiohttp 3.12, this can be done more gracefully with
socket_factory
inTCPConnector
. I think it would be helpful to mention it insocket_factory
's documentation as one of its common usecases.Are there changes in behavior for the user?
Is it a substantial burden for the maintainers to support this?
Related issue number
closes #7132
Checklist
CONTRIBUTORS.txt
CHANGES/
folder