[gdal-dev] http driver timeout
Joaquim Luis
jluis at ualg.pt
Mon Jan 14 17:15:52 EST 2008
> You could modify the source code to add a mechanism - for instance change
> the following code in gdal/port/cpl_http.cpp to include a default timeout
> of your selection:
>
> /* Set timeout.*/
> const char *pszTimeout = CSLFetchNameValue( papszOptions,
> "TIMEOUT" );
> if( pszTimeout != NULL )
> curl_easy_setopt(http_handle, CURLOPT_TIMEOUT,
> atoi(pszTimeout) );
>
> There may also be an environment variable recognised by libcurl but I
> haven't dug into that in details. See curl.haxx.se I think.
Frank, thanks
I did had a look on libcurl doc. From the info here
http://curl.netmirror.org/libcurl/c/curl_easy_setopt.html#CURLOPTTIMEOUT
maybe the right parameter to pass is CURLOPT_CONNECTTIMEOUT
Joaquim
More information about the gdal-dev
mailing list