[Twisted-Python] async hostname resolution
Jp Calderone
exarkun at meson.dyndns.org
Fri Nov 22 21:59:47 MST 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.
Oh, *that* was the kind of "pluggable" you and glyph were talking about.
Okay, I'll try it that way (probably not 'til tomorrow though).
> 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).
>
Sounds good.
Jp
--
A sad spectacle. If they be inhabited, what a scope for misery
and folly. If they be not inhabited, what a waste of space.
-- Thomas Carlyle, looking at the stars
--
11:00pm up 21 days, 9:53, 4 users, load average: 0.00, 0.03, 0.01
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20021122/ccdc9215/attachment.sig>
More information about the Twisted-Python
mailing list