cURL / Mailing Lists / curl-library / Single Mail


DNS issue in libcurl 7.19.3 on Mac OS 10.5

From: Heston Liebowitz <>
Date: Fri, 17 Jul 2009 12:04:05 -0700

I'm running into a strange issue using libcurl with ruby bindings.
I've tested with both patron(i) and curb(ii) to the same effect,
leading me to believe this is an issue with libcurl and not the ruby

I have an array of URLs which I want to loop over and GET in turn.
About halfway through the array, one of the URLs results in a
malformed packet being sent back from the server (according to
Wireshark). After that point, all subsequent GETs have their DNS
lookups perturbed in some way. For example, here is a subset of the
URLs with the proper DNS resolutions: << << <<

The first URL in the list returns a malformed response ("TCP Previous
Segment Lost" according to Wireshark). After this, GETing the
following two URLs raises "HostResolutionError" exceptions. If I omit
the first URL though, the next two resolve and fetch correctly.

I'm using curl 7.19.3 on Mac OS 10.5.7 and ruby 1.8.6. I haven't
tested with the latest releases of cURL.

Hopefully this is enough info to reproduce the problem. Thanks for any


Received on 2009-07-17