Home » U++ Library support » U++ MT-multithreading and servers » Httprequest always timeouts
Httprequest always timeouts [message #47723] |
Sat, 11 March 2017 15:44 |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
Hi, I've got a problem on HttRequest, just on windows (but not sure if on linux it works just because the download is faster).
The code is this one:
HttpRequest http;
http.Url(url);
http.Timeout(1000000000);
http.GlobalTimeout(1000000000);
http.MaxContentSize(1000000000);
// execute till finished
http.New();
int tim = msecs();
while(http.Do() && !http.IsTimeout() && !http.IsError())
{
int len = http.GetContentLength();
if(len)
progress(http.GetContent().GetCount(), len);
}
tim = msecs() - tim;
RLOG("TIME IS " << tim << " ms");
I tried with GlobalTimeout(), Timeout(), Blocking() and all I could think about, but the download of a large file (some 170 MB)
always timeouts after exactly 120 seconds.
Any solution ?
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 06:27:55 CEST 2024
Total time taken to generate the page: 0.03439 seconds
|