vshymanskyy / aiodns

A small async DNS client for MicroPython
MIT License
9 stars 1 forks source link

Keep the query running in the background #6

Open vshymanskyy opened 5 days ago

vshymanskyy commented 5 days ago

Currently getaddrinfo early-exits, but I'm thinking to keep the query process running in the background until the true timeout is reached. This way, more results will be cached and available for the application to use. The getaddrinfo will still early-exit on the first result, and the +50ms adjustment will probably be removed.

Originally posted by @vshymanskyy in https://github.com/vshymanskyy/aiodns/issues/4#issuecomment-2419207015