Repeated Host Lookups Failing In Urllib2
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 looks like many
Solution 1:
This is not a Python problem, on Linux systems make sure nscd (Name Service Cache Daemon)
is actually running.
UPDATE:
And looking at your code you are never calling page.close()
hence leaking sockets.
Post a Comment for "Repeated Host Lookups Failing In Urllib2"