HTTP client

Posted by lucooms on 02-Dec-2015 03:39

Hello i'm new to the http library.

when i run the following code on client i do not see any message 

oResponse = ClientBuilder:Build():Client:Execute(oRequest) .

when i  run this on appserver i get  the followin in the log file 

[15/12/02@10:28:15.448+0100] P-009700 T-008452 1 AS SOCKET CONNECT: TIME=6
[15/12/02@10:28:15.449+0100] P-009700 T-008452 1 AS SOCKET WRITE: TIME=0; SIZE=1051
[15/12/02@10:28:15.629+0100] P-009700 T-008452 1 AS SOCKET READ: BYTES-AVAIL=1121
[15/12/02@10:28:15.629+0100] P-009700 T-008452 1 AS SOCKET READ: TIME=0; SIZE=1121
[15/12/02@10:28:15.653+0100] P-009700 T-008452 1 AS SOCKET TOTAL READ: TIME=198

How can i avoid this ? 

Posted by Peter Judge on 02-Dec-2015 07:56
Hi Luc,
 
On 11.5.1 there's a bug whereby those messages are always written into the log-manager's log-file (which is the appserver agent/server log). It's fixed in 11.6.
 
There's a hotfix for 11.5.1 (.013) that contains memory leak fixes for the HTTP client which also contains a fix for this logging issue. I would highly recommend that you use the hotfixed version.
 
If you can't use the hotfix, and need to patch this, the class to fix is OpenEdge/Net/ServerConnection/ClientSocket.cls which is in $DLC/src/netlib/OpenEdge.Net.pl. You can update all the calls to LogMessage() with an integer value of 5 for the 2nd argument (they're currently 0). This is what's used in 11.6.0+.
 
 
 

All Replies

Posted by Peter Judge on 02-Dec-2015 07:56
Hi Luc,
 
On 11.5.1 there's a bug whereby those messages are always written into the log-manager's log-file (which is the appserver agent/server log). It's fixed in 11.6.
 
There's a hotfix for 11.5.1 (.013) that contains memory leak fixes for the HTTP client which also contains a fix for this logging issue. I would highly recommend that you use the hotfixed version.
 
If you can't use the hotfix, and need to patch this, the class to fix is OpenEdge/Net/ServerConnection/ClientSocket.cls which is in $DLC/src/netlib/OpenEdge.Net.pl. You can update all the calls to LogMessage() with an integer value of 5 for the 2nd argument (they're currently 0). This is what's used in 11.6.0+.
 
 
 
Posted by lucooms on 07-Dec-2015 04:29

Peter where can we find the hotfix . In my ESD for 11.5 i do not see any hotfixes

Posted by Libor Laubacher on 07-Dec-2015 04:46

Log a Support case, unlike Service Packs, hot-fixes are provided on case by case basis.

This thread is closed