cURL / Mailing Lists / curl-library / Single Mail



From: Daniel Stenberg <>
Date: Fri, 9 Mar 2001 10:50:26 +0100 (MET)

On Fri, 9 Mar 2001, Bescon, Guenole wrote:

> I start the server
> I start a client doing a HTTP post with CURLOPT_TIMEOUT set to 30
> I kill the server before the end of the post processing
> The client request is immediatly ended
> For me, the expected behavior shoud be:
> The client request returns after 30s.
> Is it true or not ?

You expect a behavior that libcurl doesn't support. The CURLOPT_TIMEOUT is a
maximum time. Setting it to 30 will make libcurl always return within 30
seconds. If it fails or completes its operation earlier, then it returns

libcurl does not retry connections. If it fails, you need to do the retrying.

  Daniel Stenberg -- curl project maintainer --
Curl-library mailing list
Received on 2001-03-09