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 » Httpclient timeout
Httpclient timeout [message #28676] Sat, 11 September 2010 14:02 Go to next message
mubeta is currently offline  mubeta
Messages: 77
Registered: October 2006
Member
Hi all,
First:
I am trying to get a big size file from remote server, using httpclient. ( 5 MB - 10 MB).

Before to get the complete file, the testing application exit with httpclient error:
timed out when receiving server response
.
at line 427 of file Web/httpcli.cpp - U++ 2467.

I set the client timeout to 20 seconds, but I don't know, time by time, the Internet speed, so how long the client timeout must be set? (Note that at the server side there is an php file that generate and send the file. I must use chunking?? Will be better ??)

Second:
the timeout of the first problem, can depend from the msecs() function ? In the file Core/Debug.cpp, line 7, msecs look like don't take in account of the overflow of GetTickCount()...

Re: Httpclient timeout [message #29623 is a reply to message #28676] Thu, 04 November 2010 14:09 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
mubeta wrote on Sat, 11 September 2010 08:02


Second:
the timeout of the first problem, can depend from the msecs() function ? In the file Core/Debug.cpp, line 7, msecs look like don't take in account of the overflow of GetTickCount()...



Usually, when using GetTickCount(), we are using subtraction, so any overflow will be covered unless the timeout is more than 31^2 ms.
Previous Topic: HTTP client with bandwidth throttling
Next Topic: thread sample and overrideCursor
Goto Forum:
  


Current Time: Fri Mar 29 06:08:38 CET 2024

Total time taken to generate the page: 0.00935 seconds