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
Doubt with timeout in HttpRequest [message #36119] Mon, 30 April 2012 10:05 Go to previous message
koldo is currently offline  koldo
Messages: 3360
Registered: August 2008
Senior Veteran
Hello Mirek

HttpRequest is subclass of TcpSocket. Both have a timeout member.

In HttpRequest it is set to 120000 and in TcpSocket it is set to Null.

The problem is that doing a HttpRequest::RequestTimeout(int ms) does not change TcpSocket::timeout, so for example HttpRequest::SendingData() will not work properly, as it calls TcpSocket::Put().

So it seems to set a timeout it is necessary to do this:
	HttpRequest http;
	http.RequestTimeout(mytime);
	http.Timeout(mytime);

Is it ok?


Best regards
IƱaki
 
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: Tue May 07 03:00:56 CEST 2024

Total time taken to generate the page: 0.02449 seconds