Package: python-twisted-names
Version: 9.0.0-1
Severity: normal
Tags: patch

hi,

This patch resolves an issue where a return and extractRecord call
incorrectly closes the lookup to the resolver, making it fail to connect
properly. First exhibited in supybot with Twisted connection
plugin/driver.

The following patch fixes the problem.

=====
Index: twisted/names/common.py
===================================================================
--- twisted/names/common.py     (revision 27345)
+++ twisted/names/common.py     (working copy)
@@ -201,9 +201,9 @@
         if r.type == dns.NS:
             from twisted.names import client
             r = client.Resolver(servers=[(str(r.payload.name), dns.PORT)])
-            return r.lookupAddress(str(name)
-                ).addCallback(lambda (ans, auth, add): extractRecord(r, name, 
ans + auth + add, level - 1)
-                ).addBoth(lambda passthrough: 
(r.protocol.transport.stopListening(), passthrough)[1])
+            return r.lookupAddress(str(name)).addCallback(
+                lambda (ans, auth, add): extractRecord(r, name, ans + auth + 
add, level - 1)
+                )
 
 typeToMethod = {
     dns.A:     'lookupAddress',
=====

thanks
Simon

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (995, 'unstable'), (990, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.31.5-acahkos
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-twisted-names depends on:
ii  python                       2.5.4-5     An interactive high-level object-o
ii  python-central               0.6.14+nmu2 register and build utility for Pyt
ii  python-twisted-core          9.0.0-1     Event-based framework for internet

python-twisted-names recommends no packages.

python-twisted-names suggests no packages.

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/share/pyshared/twisted/names/common.py (from 
python-twisted-names package)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to