curl-library
Re: Strange "couldn't connect to host" error
Date: Thu, 31 May 2007 16:44:28 -0400
Daniel Stenberg wrote:
> On Thu, 31 May 2007, Jonathan Arnold wrote:
>
>> We have a routine that gets called every second, goes out to the web,
>> and downloads a tiny (about 50 characters) file.
>
> What libcurl version? Does it download this from the same server every
> second?
curl, v7.16.2
Yes, it downloads from the same server.
>> It runs okay for some random time, say 30 minutes, but then returns
>> back a "Couldn't connect to host" error.
>
> That means that the connect() call failed...
>
>> Should I tweak some timeout?
>
> Possibly, yes. You should probably check what happens on the wire when
> this failure occurs to pinpoint exactly what to do.
I don't see anything via Wireshark when there is a problem. No packet
at all.
-- Jonathan Arnold Software Engineer inSORS Integrated Communications, Inc jarnold_at_insors.com Office/fax: 781.391.2818Received on 2007-05-31