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 #36387 is a reply to message #36381] Wed, 23 May 2012 17:00 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14265
Registered: November 2005
Ultimate Member
koldo wrote on Wed, 23 May 2012 09:03

Hello Mirek

Using WhenWait works:

if ((endTimeout < GetTickCount()) && http.GetContentLength() == 0)
	http.Abort();

However it is not very pretty as Timeout() could be supposed to be the place to set the timeout Smile.


Ah, but meanwhile I have implemented TcpSocket::GlobalTimeout and HttpRequest::RequestTimeout (which just calls GlobalTimeout).

It is also important to understand that Timeout sets timeout for single IO operation...

Mirek
 
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 Jul 07 05:27:48 CEST 2025

Total time taken to generate the page: 0.03679 seconds