U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ MT-multithreading and servers » Httpclient timeout
Httpclient timeout [message #28676] Sat, 11 September 2010 14:02 Go to previous 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()...

 
Read Message
Read Message
Previous Topic: HTTP client with bandwidth throttling
Next Topic: thread sample and overrideCursor
Goto Forum:
  


Current Time: Tue Jun 23 01:45:26 GMT+2 2026

Total time taken to generate the page: 0.00544 seconds