tornado.platform.twisted
— Bridges between Twisted and Tornado¶
Bridges between the Twisted package and Tornado.
Twisted DNS resolver¶
-
class
tornado.platform.twisted.
TwistedResolver
[source]¶ Twisted-based asynchronous resolver.
This is a non-blocking and non-threaded resolver. It is recommended only when threads cannot be used, since it has limitations compared to the standard
getaddrinfo
-basedResolver
andDefaultExecutorResolver
. Specifically, it returns at most one result, and arguments other thanhost
andfamily
are ignored. It may fail to resolve whenfamily
is notsocket.AF_UNSPEC
.Requires Twisted 12.1 or newer.
Changed in version 5.0: The
io_loop
argument (deprecated since version 4.1) has been removed.