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

Home » U++ Library support » U++ MT-multithreading and servers » Doubt with timeout in HttpRequest
Re: Doubt with timeout in HttpRequest [message #36146 is a reply to message #36144] Fri, 04 May 2012 08:11 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
koldo wrote on Fri, 04 May 2012 01:59

Hello Mirek

Now timeout is 120 seconds and there are 3 retries.

With this default values if there is a problem in connexion the application will seem to be hanged.

Perhaps it would be better to have a smaller timeout.


Well, those values are for console/server apps. And in fact, I am strongly in favor of completely removing RequestTimeout - some requests can take much longer than 2 minutes (like uploading MBs files) and then RequestTimeout would become unpleasant surprise.

If you have app that can seem hanged, you should rather use 'WhenWait'/'WhenDo' callbacks to show. Look at reference/GuiWebCrawler...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with includes in Socket.cpp and Web.h
Next Topic: Set thread priority for linux
Goto Forum:
  


Current Time: Mon Oct 12 20:50:30 GMT+2 2026

Total time taken to generate the page: 0.19655 seconds