curl-library
curl does not honor the timeout incase of redirect
Date: Tue, 30 Dec 2014 19:23:01 -0800
I am using using curl version 7.33 and the libcurl C library ,
curl_easy_perform() function.
The code set the curl timeout to 30ms and follow redirect
CURLOPT_NOSIGNAL=1
CURLOPT_TIMEOUT_MS=30ms
CURLOPT_FOLLOWLOCATION=1
CURLOPT_MAXREDIRS=2
I found the curl honors the timeout, when
-The client cannot connect to the server within the timeout time.
-The client connects to the server and the server takes long time to return
But it does NO honor the timeout
- incase of the redirect; It follows the redirect location but if the
redirect page takes long time to return, then it ignores the timeout and
wait for the redirect page to return.
thanks
Rabi
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-12-31