tornado.platform.caresresolver — Asynchronous DNS Resolver using C-Ares¶
- class
tornado.platform.caresresolver.
¶
Name resolver based on the c-ares library.
This is a non-blocking and non-threaded resolver. It may not producethe same results as the system resolver, but can be used for non-blockingresolution when threads cannot be used.
c-ares fails to resolve some names whenfamily
is ,so it is only recommended for use inAF_INET
(i.e. IPv4). This isthe default for , but other librariesmay default toAF_UNSPEC
.