configurato MP-IO per fare MENO in gestione keep alive (chiude/riapre connessione...)
This commit is contained in:
+10
-7
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user