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

Add ares_queue_active_queries() #712

Merged
merged 1 commit into from
Feb 17, 2024
Merged

Add ares_queue_active_queries() #712

merged 1 commit into from
Feb 17, 2024

Conversation

bradh352
Copy link
Member

Add a function to request the number of active queries from an ares channel. This will return the number of inflight requests to dns servers. Some functions like ares_getaddrinfo() when using AF_UNSPEC may enqueue multiple queries which will be reflected in this count.

In the future, if we implement support for queuing (e.g. for throttling purposes), and/or implement support for tracking user-requested queries (e.g. for cancelation), we can provide additional functions for inspecting those queues.

Fix By: Brad House (@bradh352)

@bradh352 bradh352 merged commit e558510 into c-ares:main Feb 17, 2024
38 of 39 checks passed
@bradh352 bradh352 deleted the queue_len branch February 18, 2024 10: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.

1 participant