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++ Core » HttpClient logs in Release mode
HttpClient logs in Release mode [message #744] Mon, 30 January 2006 17:33 Go to next message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
It seems that HttpClientGet creates long entries in the logfile even if I compile in Release mode. I would like to avoid creating a logfile when everything works OK. Logfile looks like this:
HttpClient::Execute
	socket host = something:8080
	[01/30/2006 17:32:23 @ 906] Socket::Data::OpenClient(something:8080, timeout 0, block false)
	[01/30/2006 17:32:23 @ 906] Socket::Data::Close(-1, timeout = 0)
	[01/30/2006 17:32:23 @ 906] //Socket::Data::Close, ok = false
	[01/30/2006 17:32:23 @ 906] Socket::Data::Open() -> 168
	[01/30/2006 17:32:23 @ 906] NoDelay(168)
	host = something, port = 8080
	request: GET something HTTP/1.1
	URL: http://something
	Host: something
	Connection: close
	Accept: */*
	Agent: Ultimate++ HTTP client
	
	
	[01/30/2006 17:32:23 @ 921] WriteWait(@ 168: 222, Tmax = 1000)
	[01/30/2006 17:32:23 @ 921] //WriteWait() -> 222
	[01/30/2006 17:32:24 @ 1171] recv(168) -> 268
	[01/30/2006 17:32:24 @ 1171] recv(168) -> 3659
	[01/30/2006 17:32:24 @ 1171] recv(168) -> 0
	[01/30/2006 17:32:24 @ 1171] Socket::Data::Close(168, timeout = 0)
	[01/30/2006 17:32:24 @ 1171] Socket::Data::CloseRaw(168)
	[01/30/2006 17:32:24 @ 1171] //Socket::Data::CloseRaw, ok = true
	[01/30/2006 17:32:24 @ 1171] //Socket::Data::Close, ok = true
//HttpClient::Execute
TIMING Socket::Data::Read:   0.0 us -   0.0 us (  0.0 us / 14 ), min:   0.0 us, max:   0.0 us, nesting: 1 - 14
TIMING Socket::Data::PeekRead:   2.6 s  - 173.7 ms (  2.6 s  / 15 ), min:   0.0 us, max:   1.0 s , nesting: 1 - 15
TIMING Socket::Data::Write: 999.4 us - 199.9 us (  1.0 ms / 5 ), min:   0.0 us, max:   1.0 ms, nesting: 1 - 5
TIMING Socket::Data::PeekWrite: 998.9 us -  99.9 us (  1.0 ms / 10 ), min:   0.0 us, max:   1.0 ms, nesting: 1 - 10

[Updated on: Mon, 30 January 2006 17:34]

Report message to a moderator

Re: HttpClient logs in Release mode [message #746 is a reply to message #744] Mon, 30 January 2006 18:36 Go to previous messageGo to next message
rylek is currently offline  rylek
Messages: 79
Registered: November 2005
Member
Hello there!

Sorry for that. I used to have socket logging turned on in both debug and release versions because I constantly encounter problems with the web server interface in one of my commercial applications. This has caused some confusion lately and so I decided to turn logging of by default and change it into a program-settable option instead of a compile-time macro. To turn socket logging on, use the following code:

void LogSockets(bool ls);
LogSockets(true);

Regards

Tomas
Re: HttpClient logs in Release mode [message #749 is a reply to message #746] Mon, 30 January 2006 18:55 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
(Tom means that he added LogSockets now - you have to sync uvs2 to get it)
Re: HttpClient logs in Release mode [message #750 is a reply to message #744] Mon, 30 January 2006 19:33 Go to previous messageGo to next message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
Thanks
Re: HttpClient logs in Release mode [message #780 is a reply to message #750] Thu, 02 February 2006 10:14 Go to previous messageGo to next message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
Errrmm. Sorry but this problem was not solved. I am now getting this somewhat shorter log file. I don't want this log to be created by the release-mode application.
HttpClient::Execute
	socket host = something:80
	host = something, port = 80
	request: GET /something.xml HTTP/1.1
	URL: http://something/something.xml
	Host: something
	Connection: close
	Accept: */*
	Agent: Ultimate++ HTTP client
//HttpClient::Execute
TIMING Socket::Data::Read:   0.0 us -   0.0 us (  0.0 us / 14 ), min:   0.0 us, max:   0.0 us, nesting: 1 - 14
TIMING Socket::Data::PeekRead: 395.0 ms -  79.0 ms (395.0 ms / 5 ), min:   0.0 us, max: 342.0 ms, nesting: 4 - 14
TIMING Socket::Data::Write:   2.0 ms - 399.9 us (  2.0 ms / 5 ), min:   0.0 us, max:   1.0 ms, nesting: 1 - 5
TIMING Socket::Data::PeekWrite:  32.0 ms -   4.0 ms ( 32.0 ms / 8 ), min:   0.0 us, max:  30.0 ms, nesting: 2 - 10
Re: HttpClient logs in Release mode [message #1027 is a reply to message #780] Tue, 14 February 2006 17:38 Go to previous messageGo to next message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
The status improved in 602beta2, but still not OK. Please remove these logs from the release build.
TIMING Socket::Data::Read:   0.0 us -   0.0 us (  0.0 us / 14 ), min:   0.0 us, max:   0.0 us, nesting: 1 - 14
TIMING Socket::Data::PeekRead: 395.0 ms -  79.0 ms (395.0 ms / 5 ), min:   0.0 us, max: 342.0 ms, nesting: 4 - 14
TIMING Socket::Data::Write:   2.0 ms - 399.9 us (  2.0 ms / 5 ), min:   0.0 us, max:   1.0 ms, nesting: 1 - 5
TIMING Socket::Data::PeekWrite:  32.0 ms -   4.0 ms ( 32.0 ms / 8 ), min:   0.0 us, max:  30.0 ms, nesting: 2 - 10
Re: HttpClient logs in Release mode [message #1028 is a reply to message #1027] Tue, 14 February 2006 19:18 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Sorry (it was in Socket.cpp rather than in HttpClient).

(BTW, beware, there will be small interface changes for Socket).

Mirek
Previous Topic: Serbian translation
Next Topic: serialize and endians on non-x86 machines [BUG]
Goto Forum:
  


Current Time: Fri Mar 29 06:02:54 CET 2024

Total time taken to generate the page: 0.01586 seconds