Skip to content

Support attempts and timeout options from resolv.conf#632

Merged
bradh352 merged 1 commit into
c-ares:mainfrom
Kontakter:support_modern_resolv_conf_options
Nov 22, 2023
Merged

Support attempts and timeout options from resolv.conf#632
bradh352 merged 1 commit into
c-ares:mainfrom
Kontakter:support_modern_resolv_conf_options

Conversation

@Kontakter

Copy link
Copy Markdown
Contributor

c-ares parses only antique version of options for timeout and number of retries from resolv.conf (retrans and retry are missing in modern documentation https://man7.org/linux/man-pages/man5/resolv.conf.5.html).

I add support of attempts and timeout options

@Kontakter

Copy link
Copy Markdown
Contributor Author

I cannot realise reasons of failures on Darwin, I failed to reproduce it on my MacBook

@bradh352

Copy link
Copy Markdown
Member

I think you may have found a bug in c-ares here as to why the macOS tests are failing. The environment reading should come after sysconfig reading here: https://github.com/c-ares/c-ares/blob/main/src/lib/ares_sysconfig.c#L998 as the environment is supposed to act as overrides.

@bradh352
bradh352 merged commit 2985ce3 into c-ares:main Nov 22, 2023
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