RE: CURLOPT_TIMEOUT option
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 -- http://curl.haxx.se/ _______________________________________________ Curl-library mailing list Curl-library_at_lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/curl-libraryReceived on 2001-03-09