cURL / Mailing Lists / curl-library / Single Mail



From: Bescon, Guenole <>
Date: Fri, 9 Mar 2001 10:39:33 +0100

Hello Daniel,

Some additional information:

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 ?


-----Original Message-----
From: Daniel Stenberg []
Sent: Friday, March 09, 2001 9:35 AM
To: libcurl Mailing list
Subject: Re: CURLOPT_TIMEOUT option

On Thu, 8 Mar 2001, Bescon, Guenole wrote:

> I've set a HTTP post request using the CURLOPT_TIMEOUT option. When I do
> the HTTP post, and when the server is not available, the request
> immediatly returns. It seems that the timeout has no effect.

I don't understand what effect you want. The timeout is the maximum time you
want to allow the operation to take. If the server isn't available, the
operation will fail immediately. That has nothing to do with the timeout

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