[Twisted-Python] Twisted Names too many open files...resolv.conf

Jason J. W. Williams jasonjwwilliams at gmail.com
Thu Jun 17 20:36:51 EDT 2010

Hi Guys,

Is there anyway to prevent twisted.names.client.createResolver() from
creating a resolvconf resolver, when servers= is passed?

The use here doesn't need the resolv.conf resolvers (and actually
really doesn't want them). What appears to be occurring is that
repeated use of createResolver() exhausts the number of allowed open
files because resolv.conf is never closed:

exceptions.IOError: [Errno 24] Too many open files: '/etc/resolv.conf'

Any advice is greatly appreciated.


More information about the Twisted-Python mailing list