cURL / Mailing Lists / curl-library / Single Mail


Re: Strange "couldn't connect to host" error

From: Daniel Stenberg <>
Date: Thu, 31 May 2007 22:21:37 +0200 (CEST)

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?

> 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.

  Commercial curl and libcurl Technical Support:
Received on 2007-05-31