<div dir="ltr"><div>when i run the code:</div><div><div>        df = Deferred()</div><div>        name = Name('version.bind')</div><div>        axf = AXFRController(name,df)</div><div>        dns = DNSDatagramProtocol(axf)</div>

<div>        d = dns.query((ip,53),[Query('version.bind',TXT,CH)])</div><div>it raise the error :</div></div><div>Traceback (most recent call last):</div><div>  File "/usr/local/lib/python2.7/site-packages/twisted/python/log.py", line 73, in callWithContext</div>

<div>    return context.call({ILogContext: newCtx}, func, *args, **kw)</div><div>  File "/usr/local/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext</div><div>    return self.currentContext().callWithContext(ctx, func, *args, **kw)</div>

<div>  File "/usr/local/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext</div><div>    return func(*args,**kw)</div><div>  File "/usr/local/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 614, in _doReadOrWrite</div>

<div>    why = selectable.doRead()</div><div>--- <exception caught here> ---</div><div>  File "/usr/local/lib/python2.7/site-packages/twisted/internet/udp.py", line 149, in doRead</div><div>    self.protocol.datagramReceived(data, addr)</div>

<div>  File "/usr/local/lib/python2.7/site-packages/twisted/names/dns.py", line 1936, in datagramReceived</div><div>    self.controller.messageReceived(m, self, addr)</div><div>exceptions.TypeError: messageReceived() takes exactly 3 arguments (4 given)</div>

<div>Unhandled Error</div><div><br></div><div>and the I set the DNSDatagramProtocol.datagramReceived's last row </div><div>self.controller.messageReceived(m, self, addr)<br></div><div style>to</div><div style>self.controller.messageReceived(m, self)<br>
</div><div style>it'ok!</div><div style>And this is a bug????</div><div><br></div></div>