aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Clients/Assets/AssetsClient.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-08-05 20:36:46 +0100
committerJustin Clark-Casey (justincc)2013-08-05 20:36:46 +0100
commit7f0d9ad64473ad0defb8d534a8ddadc6d471e4a5 (patch)
treea0f08f24f9cb1750710bfd6ec94bafedceff74ec /OpenSim/Tests/Clients/Assets/AssetsClient.cs
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-7f0d9ad64473ad0defb8d534a8ddadc6d471e4a5.zip
opensim-SC_OLD-7f0d9ad64473ad0defb8d534a8ddadc6d471e4a5.tar.gz
opensim-SC_OLD-7f0d9ad64473ad0defb8d534a8ddadc6d471e4a5.tar.bz2
opensim-SC_OLD-7f0d9ad64473ad0defb8d534a8ddadc6d471e4a5.tar.xz
Make test AssetsClient print out more information about any failure to set thread numbers and immediate post config thread numbers
Diffstat (limited to 'OpenSim/Tests/Clients/Assets/AssetsClient.cs')
-rw-r--r--OpenSim/Tests/Clients/Assets/AssetsClient.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/OpenSim/Tests/Clients/Assets/AssetsClient.cs b/OpenSim/Tests/Clients/Assets/AssetsClient.cs
index 26d740b..e988d0e 100644
--- a/OpenSim/Tests/Clients/Assets/AssetsClient.cs
+++ b/OpenSim/Tests/Clients/Assets/AssetsClient.cs
@@ -68,8 +68,18 @@ namespace OpenSim.Tests.Clients.AssetsClient
68 m_log.InfoFormat("[ASSET CLIENT]: Connecting to {0} max threads = {1} - {2}", serverURI, max1, max2); 68 m_log.InfoFormat("[ASSET CLIENT]: Connecting to {0} max threads = {1} - {2}", serverURI, max1, max2);
69 ThreadPool.GetMinThreads(out max1, out max2); 69 ThreadPool.GetMinThreads(out max1, out max2);
70 m_log.InfoFormat("[ASSET CLIENT]: Connecting to {0} min threads = {1} - {2}", serverURI, max1, max2); 70 m_log.InfoFormat("[ASSET CLIENT]: Connecting to {0} min threads = {1} - {2}", serverURI, max1, max2);
71 ThreadPool.SetMinThreads(1, 1); 71
72 ThreadPool.SetMaxThreads(10, 3); 72 if (!ThreadPool.SetMinThreads(1, 1))
73 m_log.WarnFormat("[ASSET CLIENT]: Failed to set min threads");
74
75 if (!ThreadPool.SetMaxThreads(10, 3))
76 m_log.WarnFormat("[ASSET CLIENT]: Failed to set max threads");
77
78 ThreadPool.GetMaxThreads(out max1, out max2);
79 m_log.InfoFormat("[ASSET CLIENT]: Post set max threads = {1} - {2}", serverURI, max1, max2);
80 ThreadPool.GetMinThreads(out max1, out max2);
81 m_log.InfoFormat("[ASSET CLIENT]: Post set min threads = {1} - {2}", serverURI, max1, max2);
82
73 ServicePointManager.DefaultConnectionLimit = 12; 83 ServicePointManager.DefaultConnectionLimit = 12;
74 84
75 AssetServicesConnector m_Connector = new AssetServicesConnector(serverURI); 85 AssetServicesConnector m_Connector = new AssetServicesConnector(serverURI);