| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Archives
Resumed uploads getting timedout
From: sandeep a <sandeep.a.sastry_at_gmail.com>
Date: Mon, 18 Jun 2012 16:42:32 +0400
Hi,
I am trying to upload a 4.5GB file and once the file is uploaded till 3.5GB
Using:
curl_easy_setopt(curl_easy_handle_, CURLOPT_RESUME_FROM_LARGE, startRange);
curl_easy_setopt( curl_easy_handle_, CURLOPT_APPEND, 1L );
curl_easy_setopt(curl_easy_handle_, CURLOPT_LOW_SPEED_LIMIT, 1);
curl_easy_setopt(curl_easy_handle_, CURLOPT_LOW_SPEED_TIME,30);
I am using the curl default read callback, but I have my own seekfunction,
int SeekCallback(void *userp, curl_off_t offset, int origin)
{
FILE *fp = (FILE*) userp;
int code = 2; //In all failure cases we shall let curl to do the proper
if(fp)
{
fflush(fp);
#if defined(WIN32)
__int64 offSet = (__int64) (offset);
code = _fseeki64(fp, offSet, origin);
#else
off_t offSet = (off_t) offset;
code = fseeko(fp, offSet, origin);
#endif
fflush(fp);
if(code == 0)
return 0;
}
return 2; //In all failure cases we shall let curl to do the proper
}
Problem:
------------
The issue here is, I see that the resumed upload is getting timed out with
At the same time, I do not see the above timeout, if I cancel the upload of
But I am not able to figure out, why curl is taking close to 90 seconds to
Please let me know, what is going wrong or rather what I am doing wrong.
Curl Version: 7-24
Os: Ubuntu 64 bit Linux
Thanks,
-Sandeep
-------------------------------------------------------------------
These mail archives are generated by hypermail. |
Page updated January 05, 2012.
web site info