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 » 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: 13980
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: Thu May 23 13:39:27 CEST 2024

Total time taken to generate the page: 0.02296 seconds