|
@@ -108,7 +108,8 @@ namespace parkMonitor.server.CoreThread
|
|
|
/// </summary>
|
|
|
public void BeginWorking()
|
|
|
{
|
|
|
- Timer checkRemoteTimer = new System.Threading.Timer(CheckRemotePool, null, 3600000, 3600000);
|
|
|
+ Timer checkRemoteTimer = new System.Threading.Timer(CheckRemotePool, null, 36000, 36000);
|
|
|
+ Timer killTimeoutConnection = new System.Threading.Timer(KillTimeoutConnection, null, 36000, 36000);
|
|
|
//Timer checkLocalTimer = new System.Threading.Timer(CheckLocalPool, null, 10000, 300000);
|
|
|
//Timer logTimer = new System.Threading.Timer(displayLog, null, 1000, 30000);
|
|
|
Object lockObj = new object();
|
|
@@ -289,12 +290,15 @@ namespace parkMonitor.server.CoreThread
|
|
|
}
|
|
|
private void CheckRemotePool(object o)
|
|
|
{
|
|
|
- ConnectionPoolManager.CheckConnPooling(3, 10, ConnectionPoolManager.remoteConf, EntityForCore.remoteBQ);
|
|
|
- DBOperation.KillTimeOutConnection(null, 3600, EntityForCore.remoteBQ);
|
|
|
+ ConnectionPoolManager.CheckConnPooling(3, 10, ConnectionPoolManager.remoteConf, EntityForCore.remoteBQ);
|
|
|
}
|
|
|
private void CheckLocalPool(object o)
|
|
|
{
|
|
|
ConnectionPoolManager.CheckConnPooling(3, 10, ConnectionPoolManager.localConf, EntityForCore.localBQ);
|
|
|
}
|
|
|
+ private void KillTimeoutConnection(object o)
|
|
|
+ {
|
|
|
+ DBOperation.KillTimeOutConnection(null, 3600, EntityForCore.remoteBQ);
|
|
|
+ }
|
|
|
}
|
|
|
}
|