curl-users
Slow DNS lookups compared to wget
Date: Fri, 15 Feb 2002 08:56:26 -0600
DNS lookups of some (but not all) URLs are extremely slow using
cURL 7.8, but are not slow when using wget:
# wget is nice and fast....
$ time wget -q -O- "http://quote.bloomberg.com/markets/earnings/ecal.cgi" > xxx
real 0m2.511s
user 0m0.000s
sys 0m0.010s
# cURL 7.8 is picking lint from its bellybutton...
$ time curl -s "http://quote.bloomberg.com/markets/earnings/ecal.cgi" > xxx
real 0m31.857s
user 0m0.010s
sys 0m0.000s
# Try numeric IP address with curl to prove the problem is the DNS lookup...
$ time curl -s "http://204.179.240.78/markets/earnings/ecal.cgi" > xxx
real 0m2.402s
user 0m0.010s
sys 0m0.000s
Any idea why this is?
Are there any workarounds besides a painful domino-like upgrade of the
RPM and the several co-dependant RPMs (libssl, libcrypto, php)?
-Rick
-- Rick Richardson rickr@mn.rr.com http://home.mn.rr.com/richardsons/ I still say awk '{print $1}' a lot. -- Larry WallReceived on 2002-02-15