Skip to content

[3.14 backport] feat: Add dynamic port binding to TCPSite (#12167)#12184

Merged
Dreamsorcerer merged 2 commits intoaio-libs:3.14from
rodrigobnogueira:backport-12167-3.14
Mar 2, 2026
Merged

[3.14 backport] feat: Add dynamic port binding to TCPSite (#12167)#12184
Dreamsorcerer merged 2 commits intoaio-libs:3.14from
rodrigobnogueira:backport-12167-3.14

Conversation

@rodrigobnogueira
Copy link
Copy Markdown
Member

@rodrigobnogueira rodrigobnogueira commented Mar 1, 2026

What do these changes do?

Backports PR #12167 to the 3.14 branch.

Are there changes in behavior for the user?

Allows users to bind to a dynamic port by using the 0 port number in TCPSite, which was backported from master.

Is it a substantial burden for the maintainers to support this?

No, this backports an already merged feature to bring parity for users still on 3.14.

Related issue number

Backports #12167.

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt
  • Add a new news fragment into the CHANGES/ folder

Co-authored-by: Tom Whittock <[email protected]>
Co-authored-by: Sam Bull <[email protected]>
Co-authored-by: Tom Whittock <[email protected]>
Co-authored-by: J. Nick Koston <[email protected]>
Co-authored-by: rodrigo.nogueira <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit b08d909)
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Mar 1, 2026
@rodrigobnogueira rodrigobnogueira changed the title [3.14] feat: Add dynamic port binding to TCPSite (#12167) [3.14 backport] feat: Add dynamic port binding to TCPSite (#12167) Mar 1, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.34%. Comparing base (b93d411) to head (a059898).
⚠️ Report is 2 commits behind head on 3.14.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             3.14   #12184      +/-   ##
==========================================
+ Coverage   98.29%   98.34%   +0.04%     
==========================================
  Files         129      129              
  Lines       45683    45702      +19     
  Branches     2473     2475       +2     
==========================================
+ Hits        44906    44945      +39     
+ Misses        589      575      -14     
+ Partials      188      182       -6     
Flag Coverage Δ
CI-GHA 98.22% <100.00%> (+0.03%) ⬆️
OS-Linux 97.97% <100.00%> (+0.01%) ⬆️
OS-Windows 95.63% <100.00%> (+0.30%) ⬆️
OS-macOS 97.16% <100.00%> (?)
Py-3.10.11 96.70% <100.00%> (?)
Py-3.10.19 97.25% <100.00%> (+<0.01%) ⬆️
Py-3.11.14 97.49% <100.00%> (?)
Py-3.11.9 96.94% <100.00%> (+1.77%) ⬆️
Py-3.12.10 97.02% <100.00%> (+1.77%) ⬆️
Py-3.12.12 97.59% <100.00%> (+0.14%) ⬆️
Py-3.13.12 97.80% <100.00%> (+0.02%) ⬆️
Py-3.14.3 97.76% <100.00%> (+0.23%) ⬆️
Py-3.14.3t 96.87% <100.00%> (+<0.01%) ⬆️
Py-pypy3.11.13-7.3.20 96.91% <100.00%> (?)
VM-macos 97.16% <100.00%> (?)
VM-ubuntu 97.97% <100.00%> (+0.01%) ⬆️
VM-windows 95.63% <100.00%> (+0.30%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Mar 2, 2026

Merging this PR will not alter performance

✅ 59 untouched benchmarks


Comparing rodrigobnogueira:backport-12167-3.14 (a059898) with 3.14 (b93d411)

Open in CodSpeed

@Dreamsorcerer Dreamsorcerer merged commit 7dbaece into aio-libs:3.14 Mar 2, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided There is a change note present in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants