diff options
Diffstat (limited to 'OpenSim/Framework/Servers')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs b/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs index 4058229..51a1136 100644 --- a/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs +++ b/OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs | |||
@@ -57,24 +57,27 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
57 | private bool m_running = true; | 57 | private bool m_running = true; |
58 | private int slowCount = 0; | 58 | private int slowCount = 0; |
59 | 59 | ||
60 | private SmartThreadPool m_threadPool = new SmartThreadPool(20000, 12, 2); | 60 | private SmartThreadPool m_threadPool; |
61 | 61 | ||
62 | public PollServiceRequestManager(BaseHttpServer pSrv, uint pWorkerThreadCount, int pTimeout) | 62 | public PollServiceRequestManager(BaseHttpServer pSrv, uint pWorkerThreadCount, int pTimeout) |
63 | { | 63 | { |
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); | ||
68 | m_threadPool.Name = "PoolService"; | ||
67 | } | 69 | } |
68 | 70 | ||
69 | public void Start() | 71 | public void Start() |
70 | { | 72 | { |
73 | m_threadPool.Start(); | ||
71 | //startup worker threads | 74 | //startup worker threads |
72 | for (uint i = 0; i < m_WorkerThreadCount; i++) | 75 | for (uint i = 0; i < m_WorkerThreadCount; i++) |
73 | { | 76 | { |
74 | m_workerThreads[i] | 77 | m_workerThreads[i] |
75 | = Watchdog.StartThread( | 78 | = Watchdog.StartThread( |
76 | PoolWorkerJob, | 79 | PoolWorkerJob, |
77 | string.Format("PollServiceWorkerThread{0}:{1}", i, m_server.Port), | 80 | string.Format("PollServiceWorkerThread {0}:{1}", i, m_server.Port), |
78 | ThreadPriority.Normal, | 81 | ThreadPriority.Normal, |
79 | false, | 82 | false, |
80 | false, | 83 | false, |