• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

c-ares / c-ares / 11253210594
92%

Build:
DEFAULT BRANCH: main
Ran 09 Oct 2024 10:37AM UTC
Jobs 1
Files 178
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Oct 2024 10:34AM UTC coverage: 91.196% (+0.03%) from 91.165%
11253210594

push

github

web-flow
ares_conn: use sock_funcs.agetsockname() instead of getsockname() (#895)

this change addresses an issue with DNS cookie invalidation for users of
the legacy API and custom network stacks (e.g., Seastar's DNS).

in 02745437, we added an optional `agetsockname` to
`ares_socket_functions_ex` struct, and intended to skip calling this
function in DNS cookie invalidation if this function is not available
for legacy API users.

but we are still calling this system call directly, this fails Seastar's
DNS which uses c-ares to resolve names, and it uses the socket function
table to override the network stack to use its own userspace TCP/IP
stack, in that case, the fd passed to c-ares is not a valid file
descriptor, hence the call fails.

in this change, we

- replace direct getsockname() call with sock_funcs.agetsockname()
- skip the call if agetsockname() is not configured

Refs 02745437

Signed-off-by: Kefu Chai (@tchaikov)

5 of 5 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

22001 of 24125 relevant lines covered (91.2%)

11985.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11253210594.1 09 Oct 2024 10:37AM UTC 0
59.48
GitHub Action Run
Source Files on build 11253210594
Detailed source file information is not available for this build.
  • Back to Repo
  • 3f55f806 on github
  • Prev Build on main (#11243088073)
  • Next Build on main (#11253312177)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc