gesomax / httplib2

Automatically exported from code.google.com/p/httplib2
0 stars 0 forks source link

slow dns lookups (socket.getaddrinfo) corrected by socket.AF_INET option instead of 0 #40

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. http post

What is the expected output? What do you see instead?
very long (seconds) dns lookups in socket.getaddrinfo call at
__init__.py line 690

What version of the product are you using? On what operating system?
fedora core 7, python-2.5-15.fc7, httplib2 rev 259 (0.4.0)

I made the change to the arguments as described here
http://mail.python.org/pipermail/python-list/2003-December/240479.html

and it went much faster. I'm not familiar with all the issues here however.

thanks, great interface BTW.

Original issue reported on code.google.com by philippe...@gmail.com on 30 Oct 2008 at 3:53

GoogleCodeExporter commented 8 years ago
I tried it with 'urbandictionary.com' url, they return a 301, but the issue is 
still
demonstrated.  I was doing a POST with random parms.

Original comment by philippe...@gmail.com on 30 Oct 2008 at 3:56

GoogleCodeExporter commented 8 years ago
Most likely mis-configured IPv6 settings. If 0 was changed to AF_INET then 
httplib2 
could only work with IPv4.

Original comment by joe.gregorio@gmail.com on 26 Dec 2009 at 5:07