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

fix: ARES_OPT_TRIES must be set to update opt.tries #8587

Merged
merged 2 commits into from
Nov 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/flb_network.c
Original file line number Diff line number Diff line change
Expand Up @@ -996,12 +996,9 @@ static struct flb_dns_lookup_context *flb_net_dns_lookup_context_create(
return NULL;
}

/* c-ares options: Set the transport layer to the desired protocol and
* the number of retries to 2
*/
/* c-ares options: Set the transport layer to the desired protocol */

optmask = ARES_OPT_FLAGS;
opts.tries = 2;

if (dns_mode == FLB_DNS_USE_TCP) {
opts.flags = ARES_FLAG_USEVC;
Expand Down
Loading