.NET Open Client disconnect messages not received by PASOE.
.NET Open Client does not fully disconnect from PASOE.
If a client is closed then the associated PASOE session is not removed.
Logging onto, and off from, PASOE using a .NET Open Client shows that there are number of Connections and Sessions created, but no Disconnections.
Checking PASOE metrics for the APSV transport using http://localhost:8910/oemanager/applications/oepas1/webapps/ROOT/transports/apsv/metrics returns a result similar to the following:
{"result":{
"statusRequests":0,
"connectRequests":12,
"sessionErrors":0,
"connectErrors":0,
"disconnectRequests":0,
"sessionRequests":12,
"disconnectErrors":0,
"forbiddenErrors":0,
"type":"OE_APSV_TRANSPORT",
"startTime":"2017-10-31T08:23:21.060+01:00",
"accessTime":"2017-10-31T08:25:19.333+01:00"},
"operation":"GET APSV TRANSPORT STATISTICS",
"versionStr":"v11.6.3 ( 2017-04-18 )",
"errmsg":"","outcome":"SUCCESS",
"versionNo":1
} Connections: 12
Sessions: 12
Disconnections: 0
Checking Requests made to PASOE also shows a discrepancy, with only connections showing in localhost_access_log.YYYY-MM-DD.txt:
Each CONNHDL value should appear twice, reflecting a login and logout, e.g.
10.0.0.10 - - [DD/Mmm/YYYY:HH:MM:SS +0200] "POST /apsv?
&CONNHDL=59CB0E70500686087ADFFDBCF510F42C7425B3879961.oepas1 HTTP/1.1" 200 295 188
10.0.0.10 - - [DD/Mmm/YYYY:HH:MM:SS +0200] "POST /apsv?
&CONNHDL=59CB0E70500686087ADFFDBCF510F42C7425B3879961.oepas1 HTTP/1.1" 200 62 2But the second entry with the 62 byte payload is missing in the log.
.NET Open Client code disconnects using the following code:
if (Proxy != null)
{
Proxy.Shutdown();
Proxy.Dispose();
Proxy = null;
}
if (connection != null)
{
connection.ReleaseConnection();
connection.Dispose();
connection = null;
}