Skip to content
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

[PR #10542/e1d2d77c backport][3.12] only use AI_ADDRCONFIG when supported by getaddrinfo #10579

Conversation

patchback[bot]
Copy link
Contributor

@patchback patchback bot commented Mar 16, 2025

This is a backport of PR #10542 as merged into master (e1d2d77).

The fallback implementation for getaddrinfo in CPython doesn't support AI_ADDRCONFIG and currently fails with a bad flags error. This changes the implementation to only set the flag if it's part of AI_MASK. Since AI_MASK isn't necessarily available either this has to be checked first.

The fallback implementation for getaddrinfo in CPython doesn't support
`AI_ADDRCONFIG` and currently fails with a bad flags error. This changes
the implementation to only set the flag if it's part of `AI_MASK`. Since
`AI_MASK` isn't necessarily available either this has to be checked
first.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: J. Nick Koston <[email protected]>
(cherry picked from commit e1d2d77)
@bdraco bdraco enabled auto-merge (squash) March 16, 2025 23:21
Copy link

codspeed-hq bot commented Mar 16, 2025

CodSpeed Performance Report

Merging #10579 will not alter performance

Comparing patchback/backports/3.12/e1d2d77cc678e81f7ab7dc687edf8dd7add3ef0b/pr-10542 (d70a6a7) with 3.12 (8337927)

Summary

✅ 47 untouched benchmarks

Copy link

codecov bot commented Mar 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.08%. Comparing base (8337927) to head (d70a6a7).
Report is 3 commits behind head on 3.12.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             3.12   #10579      +/-   ##
==========================================
+ Coverage   98.06%   98.08%   +0.01%     
==========================================
  Files         126      126              
  Lines       37527    37535       +8     
  Branches     2122     2121       -1     
==========================================
+ Hits        36802    36817      +15     
+ Misses        552      548       -4     
+ Partials      173      170       -3     
Flag Coverage Δ
CI-GHA 97.97% <66.66%> (+<0.01%) ⬆️
OS-Linux 97.67% <33.33%> (+<0.01%) ⬆️
OS-Windows 94.74% <33.33%> (+0.03%) ⬆️
OS-macOS 96.82% <66.66%> (+0.04%) ⬆️
Py-3.10.11 96.70% <66.66%> (+<0.01%) ⬆️
Py-3.10.16 97.26% <33.33%> (+0.65%) ⬆️
Py-3.11.11 97.36% <33.33%> (?)
Py-3.11.9 96.80% <66.66%> (-0.01%) ⬇️
Py-3.12.9 97.77% <66.66%> (+0.48%) ⬆️
Py-3.13.2 97.75% <66.66%> (+0.94%) ⬆️
Py-3.9.13 96.60% <66.66%> (-0.02%) ⬇️
Py-3.9.21 97.15% <33.33%> (-0.01%) ⬇️
Py-pypy7.3.16 82.07% <33.33%> (?)
VM-macos 96.82% <66.66%> (+0.04%) ⬆️
VM-ubuntu 97.67% <33.33%> (+<0.01%) ⬆️
VM-windows 94.74% <33.33%> (+0.03%) ⬆️

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.

@bdraco bdraco merged commit 666523b into 3.12 Mar 16, 2025
35 checks passed
@bdraco bdraco deleted the patchback/backports/3.12/e1d2d77cc678e81f7ab7dc687edf8dd7add3ef0b/pr-10542 branch March 16, 2025 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants