[Twisted-Python] Still fighting "twisted.names.client"

Jesus Cea jcea at argo.es
Tue Jan 24 19:09:13 EST 2006

Hash: SHA1

Thanks for taking the time to look at the issue :).

Jean-Paul Calderone wrote:
> Here, you're specifying that the lookup should use no retransmits, and
> should fail if no response is received after 5 seconds.  This isn't
> generally a good way to do DNS lookups, but IIRC you had a particular
> reason for wanting this.

Basically, I'm running a real DNS caching server in tha same machine :),
so I don't need retrying.

> In any case, the first bug you hit was one
> that caused the first message received in response to the first query
> made on a resolver object to be spuriously dropped.  Since most
> applications do re-transmits, this usually didn't cause anything more
> problematic than one extra DNS request/response.  I've fixed this in
> current trunk.

How nice. Could you possibly send me the patch?.

> It turns out there is a bug in Twisted's UDP support.  Calling
> reactor.stop() from beneath datagramReceived() triggers an infinite
> exception loop.  I've created a ticket in the tracker (1448) for this. 
> Until it's resolved, or if you want this to work on a previous release
> of Twisted, you can use "reactor.callLater(0, reactor.stop)" to avoid
> the problem.

Good workaround. Thank you for the suggestion.

>> Thanks in advance for your time.
> Thanks for the minimal example :)

Thanks to Ralph for suggesting that to me on Jabber/XMPP :).

- --
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea at argo.es http://www.argo.es/~jcea/ _/_/    _/_/  _/_/    _/_/  _/_/
                                      _/_/    _/_/          _/_/_/_/_/
PGP Key Available at KeyServ   _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


More information about the Twisted-Python mailing list