cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Questions on option CURLOPT_OPERATION_TIMEOUT

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Tue, 25 Sep 2007 14:25:05 -0500

On 9/25/07, Stefan Krause <stefan.krause_at_gmx.net> wrote:
> Is there an user configurable timeout option available with the
> following logic: In case no data has been received for X seconds over
> the socket connection, the transfer aborts? Then a large amount of data
> could be transferred without aborting a perfect running operation.

This will time out if less than two bytes are received in 30 seconds...

  curl_easy_setopt(easy,CURLOPT_LOW_SPEED_LIMIT,2);
  curl_easy_setopt(easy,CURLOPT_LOW_SPEED_TIME,30);

 - Jeff
Received on 2007-09-25

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET