I have code which issues many HTTP GET requests using Python\'s urllib2, in several threads, writing the responses into files (one per thread). During execution, it look
This is not a Python problem, on Linux systems make sure nscd (Name Service Cache Daemon) is actually running.
nscd (Name Service Cache Daemon)
UPDATE: And looking at your code you are never calling page.close() hence leaking sockets.
page.close()