diff options
author | UbitUmarov | 2014-10-13 12:00:31 +0100 |
---|---|---|
committer | UbitUmarov | 2014-10-13 12:00:31 +0100 |
commit | cd87c4bec5490311d47e401acab3915f394f1a22 (patch) | |
tree | 900cf5c5cd6ce57f2bf9a3245881e3810d18607b /OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs | |
parent | reduce minimum number of smartpool threads and name it (diff) | |
download | opensim-SC_OLD-cd87c4bec5490311d47e401acab3915f394f1a22.zip opensim-SC_OLD-cd87c4bec5490311d47e401acab3915f394f1a22.tar.gz opensim-SC_OLD-cd87c4bec5490311d47e401acab3915f394f1a22.tar.bz2 opensim-SC_OLD-cd87c4bec5490311d47e401acab3915f394f1a22.tar.xz |
change/fix previus commits
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs b/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs index 51a1136..e75b705 100644 --- a/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs +++ b/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs | |||
@@ -64,8 +64,16 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
64 | m_server = pSrv; | 64 | m_server = pSrv; |
65 | m_WorkerThreadCount = pWorkerThreadCount; | 65 | m_WorkerThreadCount = pWorkerThreadCount; |
66 | m_workerThreads = new Thread[m_WorkerThreadCount]; | 66 | m_workerThreads = new Thread[m_WorkerThreadCount]; |
67 | m_threadPool = new SmartThreadPool(30000, 15, 1); | 67 | |
68 | m_threadPool.Name = "PoolService"; | 68 | STPStartInfo startInfo = new STPStartInfo(); |
69 | startInfo.IdleTimeout = 30000; | ||
70 | startInfo.MaxWorkerThreads = 15; | ||
71 | startInfo.MinWorkerThreads = 1; | ||
72 | startInfo.ThreadPriority = ThreadPriority.Normal; | ||
73 | startInfo.StartSuspended = true; | ||
74 | startInfo.ThreadPoolName = "PoolService"; | ||
75 | |||
76 | m_threadPool = new SmartThreadPool(startInfo); | ||
69 | } | 77 | } |
70 | 78 | ||
71 | public void Start() | 79 | public void Start() |