dns resolver: add options to initialize c-ares with custom timeout an… (#36947)
## Background We recently saw a small number of DNS queries getting timed out. There is currently no option for us to [initialize c-ares](https://c-ares.org/ares_init_options.html) by passing in a custom [timeout](https://c-ares.org/ares_init_options.html#:~:text=c%2Dares%201.5.2.-,ARES_OPT_TIMEOUTMS,-int%20timeout%3B) and [tries](https://c-ares.org/ares_init_options.html#:~:text=c%2Dares%201.5.2.-,ARES_OPT_TRIES,-int%20tries%3B) config options. ## Changes In this PR, we are adding two new options in c-ares resolver for configuring custom timeouts and tries while resolving DNS queries. Custom timeouts could be configured by specifying `query_timeout_seconds` option and custom tries could be configured by specifying `query_tries` config option. **Commit Message:** dns resolver: add options to initialize c-ares with custom timeout and tries **Additional Description:** add two new options called `query_timeout_seconds` and `query_tries` for initializing c-ares with custom timeout and tries. **Risk Level:** Low **Testing:** Added Unit/Integration Tests **Docs Changes:** Added **Release Notes:** Added **Platform Specific Features:** N/A --------- Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com> Mirrored from https://github.com/envoyproxy/envoy @ 0a2e904c7f1b8232e5e9700f2d995a76f4c84014main
parent
e143288608
commit
cbb7b6e3fb
1 changed files with 15 additions and 1 deletions
Loading…
Reference in new issue