Skip to content

Convert total timeout to per-query for Apple - #467

Merged
bradh352 merged 1 commit into
c-ares:mainfrom
GroundControl-Solutions:timeout-fix
May 30, 2022
Merged

Convert total timeout to per-query for Apple#467
bradh352 merged 1 commit into
c-ares:mainfrom
GroundControl-Solutions:timeout-fix

Conversation

@Marc-Aldorasi-Imprivata

Copy link
Copy Markdown
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