Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » Httprequest always timeouts
Httprequest always timeouts [message #47723] Sat, 11 March 2017 15:44 Go to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
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 ?
 
Read Message
Read Message
Read Message
Previous Topic: Error in RpcServer example
Next Topic: MDNS (Apple's Bonjour)
Goto Forum:
  


Current Time: Tue Apr 16 07:43:38 CEST 2024

Total time taken to generate the page: 0.02316 seconds