|
|
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: 3358 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 May 04 09:18:37 CEST 2024
Total time taken to generate the page: 0.02846 seconds
|
|
|