configurato MP-IO per fare MENO in gestione keep alive (chiude/riapre connessione...)

This commit is contained in:
Samuele E. Locatelli
2017-05-23 16:44:54 +02:00
parent 1240bd498e
commit 424fe6ae06
2 changed files with 12 additions and 9 deletions
+10 -7
View File
@@ -1163,17 +1163,20 @@ namespace MapoDb
{
try
{
if (memLayer.ML.confReadBool("forceResetKeepAlive"))
if (memLayer.ML.CRB("resetConnKA"))
{
taKeepAlive.Connection.Close();
taKeepAlive.Connection.Open();
}
else
{
if (taKeepAlive.Connection.State == ConnectionState.Closed)
if (memLayer.ML.CRB("forceResetKeepAlive"))
{
taKeepAlive.Connection.Close();
taKeepAlive.Connection.Open();
}
else
{
if (taKeepAlive.Connection.State == ConnectionState.Closed)
{
taKeepAlive.Connection.Open();
}
}
}
taKeepAlive.UpdateQueryNoStartTime(DateTime.Now, oraMacchina, IdxMacchina);
}