tornado.platform.twisted — Bridges between Twisted and Tornado¶
Bridges between the Twisted package and Tornado.
Twisted DNS resolver¶
-
class
tornado.platform.twisted.TwistedResolver(*args: Any, **kwargs: Any)[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-basedResolverandDefaultExecutorResolver. Specifically, it returns at most one result, and arguments other thanhostandfamilyare ignored. It may fail to resolve whenfamilyis notsocket.AF_UNSPEC.Requires Twisted 12.1 or newer.
Changed in version 5.0: The
io_loopargument (deprecated since version 4.1) has been removed.