cURL / Mailing Lists / curl-library / Single Mail

curl-library

Limiting the max time allowed to take connection + transfer operation?

From: Akira Kitada <akitada_at_gmail.com>
Date: Sun, 16 Aug 2009 16:41:15 +0900

Hi,

libcurl provides two way of configuring how many time it can be
allowed to take in its operation.

    * CURLOPT_TIMEOUT(_MS)
    * CURLOPT_CONNECTTIMEOUT(_MS)

These options are very handy but in most cases, it doesn't matter in
what operation
libcurl took 400ms, rather I'd like to limit libcurl to take for
connection+transfer.
Is there any workaround to make libcurl to take, for example, 400ms in total?
or another option has to be introduced to fulfill this?

Thanks
Received on 2009-08-16