-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
DNSResolver objects churn on transient requests without a session #10847
Copy link
Copy link
Closed
Description
Describe the bug
A single DNSResolver object is designed to handle an unlimited number of requests at a time. We should not be making multiple ones of them. https://c-ares.org/docs.html
/* Initialize channel to run queries, a single channel can accept unlimited
* queries */
if (ares_init_options(&channel, &options, optmask) != ARES_SUCCESS) {
printf("c-ares initialization issue\n");
return 1;
}
To Reproduce
Make requests without session
Expected behavior
A single DNSResolver is shared between all requests
Logs/tracebacks
n/aPython Version
n/aaiohttp Version
$ python -m pip show aiohttpmultidict Version
$ python -m pip show multidictpropcache Version
$ python -m pip show propcacheyarl Version
$ python -m pip show yarlOS
linux
Related component
Client
Additional context
No response
Code of Conduct
- I agree to follow the aio-libs Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done