[Twisted-Python] async hostname resolution

Christopher Armstrong radix at twistedmatrix.com
Sat Nov 23 07:31:50 EST 2002


On Fri, Nov 22, 2002 at 11:21:20PM -0500, Itamar Shtull-Trauring wrote:
> On Fri, 22 Nov 2002 22:55:04 -0500
> Jp Calderone <exarkun at meson.dyndns.org> wrote:
> 
> >   Diff for twisted/internet/base.py's resolve() function to make
> > it perform lookups asynchronously using the new stuff in
> > twisted/names/client.py.
> 
> Mmm. I don't like adding a dependency on an external package in
> twisted.internet. And this doesn't let people replace the name resolver
> with their own that does e.g. caching. And what if the reactor doesn't
> support UDP?
> 
> I suggest instead a reactor.installResolver(r) method, where the default
> one stays as is using socket module (with the DNS type fix going in
> though).

Why wouldn't we use the twisted.names resolver by default, if available?

-- 
                        Christopher Armstrong
                    << radix at twistedmatrix.com >>
             http://twistedmatrix.com/users/radix.twistd/




More information about the Twisted-Python mailing list