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  |
 |
koldo
Messages: 3437 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
|
|
|
Goto Forum:
Current Time: Sat Jul 05 12:58:21 CEST 2025
Total time taken to generate the page: 0.05622 seconds
|