parallelized download of many files too slow

2012-09-23 Thread pb_prom
Hi, I would like to download a bunch of files. Therefore I use curl_multi which is faster than downloading all files separately. I measured the elapsed time during downloading 100 files (each about 5kB), using curl_multi I halved the time. Unfortunately I still need about 65 seconds to load

RE: parallelized download of many files too slow

2012-09-23 Thread Yehezkel Horowitz
I think these lines are the problem with your approach while (still_running){ curl_multi_perform(multi_handle, still_running); usleep(10); } You call curl to progress whenever you want (why you just sleep 100K?!), instead of when curl needs to be

Re: passing certificates for the cCURL with openssl in android

2012-09-23 Thread Indtiny s
Hi, I tried of using the libcurl on my linux pc (where my both server and clients are running ) .. I tested the with extra setup at the client side and it worked . (here I have compiled the curl code with *openssl* support ) . below is the extra curl set opt I included in the curl client side

Re: passing certificates for the cCURL with openssl in android

2012-09-23 Thread Guenter
Hi, please dont top-post! Am 23.09.2012 16:57, schrieb Indtiny s: Now I am not finding any way to provide the path in android for my self signed certificate .. I dont know where to put my keys and certificate at the android and provide their paths . i tried by putting at the sdcard but for

Re: passing certificates for the cCURL with openssl in android

2012-09-23 Thread Daniel Stenberg
On Sun, 23 Sep 2012, Indtiny s wrote: I tried of using the libcurl on my linux pc (where my both server and clients are running ) .. I tested the with extra setup at the client side and it worked . (here I have compiled the curl code with *openssl* support ) The way you stress openssl makes

Re: passing certificates for the cCURL with openssl in android

2012-09-23 Thread Indtiny s
Yes .. I built the openssl for android .. I made them as static library and included them in the curl application(application has jni wrapper and curl client part) and built a shared library , Then I loaded this library in my java application . Rgds Indu On Mon, Sep 24, 2012 at 3:45 AM, Daniel

Re: Wrong behavior when activate the LOW_SPEED_LIMIT and LOW_SPEED_TIME

2012-09-23 Thread Dan Fandrich
On Mon, Sep 24, 2012 at 11:31:07AM +0800, Jie He wrote: curl_easy_setopt(handle_curl, CURLOPT_MAX_RECV_SPEED_LARGE, 1024); curl_easy_setopt(handle_curl, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(handle_curl, CURLOPT_LOW_SPEED_LIMIT, 1); curl_easy_setopt(handle_curl,

Re: Wrong behavior when activate the LOW_SPEED_LIMIT and LOW_SPEED_TIME

2012-09-23 Thread Jie He
yes, in my project, I used the correct data type. just here, the sample, I did that just for convenience; 2012/9/24 Dan Fandrich d...@coneharvesters.com On Mon, Sep 24, 2012 at 11:31:07AM +0800, Jie He wrote: curl_easy_setopt(handle_curl, CURLOPT_MAX_RECV_SPEED_LARGE, 1024);