diff options
author | Justin Clarke Casey | 2009-03-11 18:02:22 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-03-11 18:02:22 +0000 |
commit | acad0328b2c50d22fe76ebb7c8de2c97c856b42f (patch) | |
tree | 2379c1ae60c22a4dcee162c5b56d21f367c05bfd /OpenSim/Region/ScriptEngine/DotNetEngine | |
parent | * Fix silly windows prebuild borkage. To use System.Xml, the project must ha... (diff) | |
download | opensim-SC-acad0328b2c50d22fe76ebb7c8de2c97c856b42f.zip opensim-SC-acad0328b2c50d22fe76ebb7c8de2c97c856b42f.tar.gz opensim-SC-acad0328b2c50d22fe76ebb7c8de2c97c856b42f.tar.bz2 opensim-SC-acad0328b2c50d22fe76ebb7c8de2c97c856b42f.tar.xz |
* Make all coded defaults match settings in OpenSim.ini.example
* In most cases, the setting in OpenSim.ini.example is taken as the canonical one since this is the file virtually everyone ends up using
* OpenSim will start up with a blank OpenSim.ini, in which case sqlite is the default database (as before)
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs index 2ebc8b7..bb79da4 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs | |||
@@ -112,10 +112,12 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
112 | /// WARNING! ONLY UPDATE maxFunctionExecutionTimems, NEVER THIS DIRECTLY. | 112 | /// WARNING! ONLY UPDATE maxFunctionExecutionTimems, NEVER THIS DIRECTLY. |
113 | /// </summary> | 113 | /// </summary> |
114 | public static long maxFunctionExecutionTimens; | 114 | public static long maxFunctionExecutionTimens; |
115 | |||
115 | /// <summary> | 116 | /// <summary> |
116 | /// Enforce max execution time | 117 | /// Enforce max execution time |
117 | /// </summary> | 118 | /// </summary> |
118 | public static bool EnforceMaxExecutionTime; | 119 | public static bool EnforceMaxExecutionTime; |
120 | |||
119 | /// <summary> | 121 | /// <summary> |
120 | /// Kill script (unload) when it exceeds execution time | 122 | /// Kill script (unload) when it exceeds execution time |
121 | /// </summary> | 123 | /// </summary> |
@@ -163,7 +165,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
163 | // Refresh config | 165 | // Refresh config |
164 | numberOfThreads = m_ScriptEngine.ScriptConfigSource.GetInt("NumberOfScriptThreads", 2); | 166 | numberOfThreads = m_ScriptEngine.ScriptConfigSource.GetInt("NumberOfScriptThreads", 2); |
165 | maxFunctionExecutionTimems = m_ScriptEngine.ScriptConfigSource.GetInt("MaxEventExecutionTimeMs", 5000); | 167 | maxFunctionExecutionTimems = m_ScriptEngine.ScriptConfigSource.GetInt("MaxEventExecutionTimeMs", 5000); |
166 | EnforceMaxExecutionTime = m_ScriptEngine.ScriptConfigSource.GetBoolean("EnforceMaxEventExecutionTime", false); | 168 | EnforceMaxExecutionTime = m_ScriptEngine.ScriptConfigSource.GetBoolean("EnforceMaxEventExecutionTime", true); |
167 | KillScriptOnMaxFunctionExecutionTime = m_ScriptEngine.ScriptConfigSource.GetBoolean("DeactivateScriptOnTimeout", false); | 169 | KillScriptOnMaxFunctionExecutionTime = m_ScriptEngine.ScriptConfigSource.GetBoolean("DeactivateScriptOnTimeout", false); |
168 | EventExecutionMaxQueueSize = m_ScriptEngine.ScriptConfigSource.GetInt("EventExecutionMaxQueueSize", 300); | 170 | EventExecutionMaxQueueSize = m_ScriptEngine.ScriptConfigSource.GetInt("EventExecutionMaxQueueSize", 300); |
169 | 171 | ||
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs index bdf80c6..c2b07fc 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs | |||
@@ -171,7 +171,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
171 | 171 | ||
172 | public void ReadConfig() | 172 | public void ReadConfig() |
173 | { | 173 | { |
174 | RefreshConfigFileSeconds = ScriptConfigSource.GetInt("RefreshConfig", 30); | 174 | RefreshConfigFileSeconds = ScriptConfigSource.GetInt("RefreshConfig", 0); |
175 | 175 | ||
176 | if (m_EventQueueManager != null) m_EventQueueManager.ReadConfig(); | 176 | if (m_EventQueueManager != null) m_EventQueueManager.ReadConfig(); |
177 | if (m_EventManager != null) m_EventManager.ReadConfig(); | 177 | if (m_EventManager != null) m_EventManager.ReadConfig(); |