Date: Mon, 05 Nov 2007 04:18:20 +0100
Emil Romanus schrieb:
> 2007/11/4, nf2 <nf2_at_scheinwelt.at>:
>> how can i set a timout for the data connections?
> You put the answer to your own question in the topic of this thread.
> Use curl_easy_setopt() to set the option in question to any number of
> seconds you want libcurl to wait before timeout.
> CURLOPT_TIMEOUT applies to the whole transfer. There's also
> CURLOPT_CONNECTTIMEOUT, which applies to the time it takes to
> establish the connection.
i don't really understand the documentation of CURLOPT_TIMEOUT: "the maximum
time in seconds that you allow the libcurl transfer operation to take".
this sounds like the timeout always cancels the operation, no matter if
there is traffic on the data connection or not. i only need a timeout when a download/upload "hangs" for a certain time (no traffic on the connection).
Received on 2007-11-05