tornado.platform.twisted — Bridges between Twisted and Tornado
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-based Resolver and DefaultExecutorResolver. Specifically, it returns at most one result, and arguments other than host and family are ignored. It may fail to resolve when family is not socket.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.
