cURL / Mailing Lists / curl-library / Single Mail


Re: Always get connection timeout

From: Dan Fandrich <>
Date: Fri, 15 Aug 2008 13:05:03 -0700

On Fri, Aug 15, 2008 at 12:33:32PM -0700, Price, Robert wrote:
> Running on RH9, using source compiled from 7.18.2. Using ?easy? steps to hit a
> servlet on a server as a ?ping? and am always getting error #28 ? connection
> timeout.
> After debugging into cURL, I?m always getting the same results from
> Curl_timeleft (specifically in ssluse.c, line 1775). Timeout is set to 30
> seconds, but debugging only takes a few seconds and it always times out. The
> really strange thing is that the resulting value for timeout_ms is always the
> same value = -3502134. That just doesn?t seem right?

Are you using the right data type (i.e. a long) in the curl_easy_setopt
call setting the timeout?

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-08-15