aio-libs / aiodns

Simple DNS resolver for asyncio
https://pypi.python.org/pypi/aiodns
MIT License
532 stars 69 forks source link

how to set timeout? #74

Closed HyWell closed 3 years ago

HyWell commented 4 years ago

aiodns.DNSResolver no timeout parameter what should I do?

saghul commented 4 years ago

It does. It's a kwarg which is passed to pycares. However, it seems to be broken somehow: https://github.com/saghul/aiodns/pull/64

shmilylty commented 4 years ago

Any new developments?

saghul commented 4 years ago

Nope, sorry.

meramsey commented 3 years ago

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

saghul commented 3 years ago

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