[Twisted-Python] twisted listening on UDP port, why?

Jean-Paul Calderone exarkun at twistedmatrix.com
Wed Apr 20 07:22:58 MDT 2016


Hi,

What do the logs for the app say?  Twisted logs a message when it binds a
UDP port.

Or, another though, you could put a breakpoint on listenUDP (or socket.bind
or something) and then run the process under pdb and look at the stack
trace.

You could also try sending some traffic to the port and see what happens.
:)  Maybe you'll get something back that identifies it or maybe you'll
provoke some more logging code somewhere.

Jean-Paul

On Wed, Apr 20, 2016 at 7:33 AM, Phil Mayers <p.mayers at imperial.ac.uk>
wrote:

> On 20/04/16 01:01, Glyph wrote:
>
> Perhaps this is libc's DNS client?  Twisted doesn't do anything like this.
>>
>
> It does something similar with win32reactor IIRC?
>
>
> http://twistedmatrix.com/trac/browser/tags/releases/twisted-16.1.1/twisted/internet/posixbase.py#L60
>
> ...but that binds to 127.0.0.1 not 0.0.0.0
>
> glibc doesn't hold it's DNS sockets open AFAIK - it closes them once the
> reply is done.
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20160420/59632733/attachment-0002.html>


More information about the Twisted-Python mailing list