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

Convert total timeout to per-query for Apple #467

Merged
merged 1 commit into from
May 30, 2022

Conversation

Marc-Aldorasi-Imprivata
Copy link
Contributor

On Apple platforms, libresolv reports the total timeout in retrans, not the per-query time. This patch undoes that math to get the per-query time, which is what c-ares expects. This is not perfect because libresolv is inconsistent on whether the timeout is multiplied by retry or retry+1, but I don't see any way to distinguish these cases.

@bradh352 bradh352 merged commit afee674 into c-ares:main May 30, 2022
@Marc-Aldorasi-Imprivata Marc-Aldorasi-Imprivata deleted the timeout-fix branch May 31, 2022 13:11
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