saghul / aiodns

Simple DNS resolver for asyncio

Home Page:https://pypi.python.org/pypi/aiodns

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to set timeout?

HyWell opened this issue · comments

aiodns.DNSResolver no timeout parameter
what should I do?

It does. It's a kwarg which is passed to pycares. However, it seems to be broken somehow: #64

Any new developments?

Nope, sorry.

is there any way to hardcode this in vs using a parameter?
https://c-ares.haxx.se/ares_init_options.html

Maybe something more aggressive like this at a higher level could be used?
https://medium.com/pipedrive-engineering/socket-timeout-an-important-but-not-simple-issue-with-python-4bb3c58386b4

Nothing actionable, closing as #64 would be the canonical point for handling timeout issues.