Home » U++ Library support » U++ Core » how to open Trace in U++ core?
|
Re: how to open Trace in U++ core? [message #48540 is a reply to message #48539] |
Wed, 19 July 2017 08:49   |
Oblivion
Messages: 536 Registered: August 2007 Location: Turkey
|
Contributor |
|
|
Hello akebee,
HttpRequest::Trace(); // Simply invoke this method.
In Inet.h, you can see that HttpRequest has several static trace methods with different levels of debug information:
static void Trace(bool b = true);
static void TraceHeader(bool b = true);
static void TraceBody(bool b = true);
static void TraceShort(bool b = true);
Best regards,
Oblivion
[Updated on: Wed, 19 July 2017 08:50] Report message to a moderator
|
|
|
|
Re: how to open Trace in U++ core? [message #48542 is a reply to message #48541] |
Wed, 19 July 2017 11:40   |
Oblivion
Messages: 536 Registered: August 2007 Location: Turkey
|
Contributor |
|
|
Hello akebee,
It is better not to directly call TcpSocket::Timeout() while using HttpRequest (because HttpRequest class is inherently asynchronous, using TcpSocket::Timeout() may lead to erratic behaviour.).
Did you try the below timeout setter?
HttpRequest::RequestTimeout()
Best regards,
Oblivion
[Updated on: Wed, 19 July 2017 11:41] Report message to a moderator
|
|
|
Re: how to open Trace in U++ core? [message #48543 is a reply to message #48542] |
Thu, 20 July 2017 04:04  |
 |
akebee
Messages: 88 Registered: August 2011 Location: China
|
Member |
|
|
yeh HttpRequest::RequestTimeout() worked! tks
i'm annoying for a long time the HttpRequest::Execute() blocked occasional ,it blocked even more than hours!
RequestTimeout saved me
but i found Timeout() in bazaar\Updater\updater.cpp
http.Timeout(1000);
http.Url(GetPlatformRoot() + "versions");
http.WhenDo.Clear();
[Updated on: Thu, 20 July 2017 04:09] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Feb 23 20:01:17 CET 2019
Total time taken to generate the page: 0.00686 seconds
|