src: migrate deprecated c-ares APIs to modern replacements#62724
src: migrate deprecated c-ares APIs to modern replacements#62724omghante wants to merge 1 commit intonodejs:mainfrom
Conversation
|
Review requested:
|
d0750bf to
140cde3
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #62724 +/- ##
==========================================
- Coverage 89.65% 89.64% -0.01%
==========================================
Files 712 712
Lines 220498 220595 +97
Branches 42278 42305 +27
==========================================
+ Hits 197683 197758 +75
- Misses 14663 14675 +12
- Partials 8152 8162 +10
🚀 New features to boost your workflow:
|
140cde3 to
abc640a
Compare
|
CI is very red |
abc640a to
fedc05d
Compare
|
Thanks @mcollina! Fixed, all workflows are finally back to green! Feel free to take a look whenever you have a chance. |
a93485a to
e5e76a2
Compare
|
@mcollina I've reworked the approach now just suppressing the warnings with compiler pragmas instead of migrating APIs. Test file is fully untouched, all fe80:: cases preserved. Full API migration will be a follow-up PR. |
e5e76a2 to
8014a4d
Compare
|
@thisalihassan Great catches, all valid. I've force-pushed a new approach just pragma-based warning suppression (13 lines, 1 file). No API migration, so the IPv6 link-local and CNAME-TTL clamping issues are gone. Signed-off-by added. Full migration can be a separate PR. |
|
Hi @mcollina following up on this. I've addressed all feedback from your
The full migration to Could you dismiss the "changes requested" state and re-review when you get @targos this addresses the deprecation warnings you reported in #52464. |
372e4bc to
64b6870
Compare
Signed-off-by: om-ghante <mr.omghante1@gmail.com>
64b6870 to
3616cdb
Compare
|
@targos Thanks for the feedback reworked! The PR now fully migrates all reply-parser APIs to |
This PR migrates the deprecated c-ares reply-parsing APIs in
src/cares_wrap.ccto the modernares_dns_parse/ares_dns_record_tAPI family, replacing ~10 deprecated call sites (ares_parse_a_reply,ares_parse_aaaa_reply,ares_parse_ns_reply,ares_parse_ptr_reply,ares_parse_mx_reply,ares_parse_caa_reply,ares_parse_txt_reply_ext,ares_parse_srv_reply,ares_parse_naptr_reply,ares_parse_soa_reply) with their modern equivalents while preserving CNAME-TTL clamping behavior.The server management functions (
EnsureServers,GetServers,SetServers) retain the originalares_get_servers_ports/ares_set_servers_portsAPIs with targeted pragma suppression, as the modern CSV alternatives (ares_get_servers_csv,ares_set_servers_ports_csv) silently drop IPv6 link-local addresses.Fixes: #52464