twisted.names.client.getHostByName() UDP socket leak
[email protected] Wed, 26 Aug 2009 17:51:02 -0000
| Newsgroups | gmane.comp.python.twisted.bugs |
|---|---|
| Message-ID | <[email protected]> |
New submission from pythonologist <None>: The utility function twisted.names.client.getHostByName() does not seem to close the UDP socket it opens, resulting over time in a build-up of UDP ports in use. See attached test program dns_test.py. On Linux you can see the socket count increase via: lsof -i -nP | grep UDP | wc -l On Windows it runs out of file descriptors after a period of 10 mins or so ---------- Type : defect Component: names Keywords : Priority : normal Nosy : ---------- http://twistedmatrix.com/trac/ticket/3982