Ver Fonte

Merge remote-tracking branch 'anonymous/dev' into dev

yc_t há 6 anos atrás
pai
commit
eca404455c

+ 2 - 1
parkMonitor/parkMonitor.csproj

@@ -49,7 +49,8 @@
     <DefineConstants>TRACE</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
-    <DocumentationFile>bin\Release\parkMonitor.xml</DocumentationFile>
+    <DocumentationFile>
+    </DocumentationFile>
   </PropertyGroup>
   <PropertyGroup>
     <ApplicationIcon>resource\image\icon.ico</ApplicationIcon>

+ 2 - 1
parkMonitor/server/CoreThread/CoreThreadTest2.cs

@@ -109,7 +109,7 @@ namespace parkMonitor.server.CoreThread
         public void BeginWorking()
         {
             Timer checkRemoteTimer = new System.Threading.Timer(CheckRemotePool, null, 3600000, 3600000);
-            Timer killTimeoutConnection = new System.Threading.Timer(KillTimeoutConnection, null, 3600000, 3600000);
+            //Timer killTimeoutConnection = new System.Threading.Timer(KillTimeoutConnection, null, 3600000, 3600000);
             //Timer checkLocalTimer = new System.Threading.Timer(CheckLocalPool, null, 10000, 300000);
             //Timer logTimer = new System.Threading.Timer(displayLog, null, 1000, 30000);
             while (!isClosing)
@@ -337,6 +337,7 @@ namespace parkMonitor.server.CoreThread
         private void KillTimeoutConnection(object o)
         {
             DBOperation.KillTimeOutConnection(null, 3600, EntityForCore.remoteBQ);
+            ConnectionPoolManager.CheckConnPooling(3, 10, ConnectionPoolManager.remoteConf, EntityForCore.remoteBQ);
         }
     }
 }