Skip to content

Add ares_queue_active_queries() - #712

Merged
bradh352 merged 1 commit into
c-ares:mainfrom
bradh352:queue_len
Feb 17, 2024
Merged

bradh352 merged 1 commit into
c-ares:mainfrom
bradh352:queue_len

Conversation

@bradh352

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