]> git.ipfire.org Git - thirdparty/tornado.git/commit
twisted: Delete TwistedResolver class 3397/head
authorBen Darnell <ben@bendarnell.com>
Tue, 11 Jun 2024 16:16:55 +0000 (12:16 -0400)
committerBen Darnell <ben@bendarnell.com>
Tue, 11 Jun 2024 16:16:55 +0000 (12:16 -0400)
commit2417cf35733e6ffdbae9e4584095324e993a17c0
tree173356ba318575ade95eb3818d5ad6300f2191db
parented209de7cc266a3d4ba70f6c55dbb4eb7432e855
twisted: Delete TwistedResolver class

This class was deprecated and slated for deletion in Tornado 7.0.
However, it has become broken due to the adoption of RFC 8482
(which limits the use of the ANY query type in DNS) and it now fails
for most domain names (with the exception of localhost).
The upstream issue https://github.com/twisted/twisted/issues/10062
has been open for years which is a pretty good sign that no one
is depending on this class and it's safe to remove it ahead of
schedule.

This class was primarily intended to provide thread-free non-blocking
DNS resolution. If that is still required,
`tornado.platform.caresresolver` is the next best option, although it
has its own limitations which differ from TwistedResolver.
docs/releases/v3.0.0.rst
docs/releases/v3.2.0.rst
docs/releases/v5.0.0.rst
docs/twisted.rst
maint/scripts/test_resolvers.py
tornado/netutil.py
tornado/platform/twisted.py
tornado/test/netutil_test.py
tornado/test/tcpclient_test.py