diff options
author | Diva Canto | 2012-03-13 08:07:11 -0700 |
---|---|---|
committer | Diva Canto | 2012-03-13 08:07:11 -0700 |
commit | 37828c9b9a065e5ee4df06e05eecd1e0a41ea07e (patch) | |
tree | fbcc970ef6fa4256e98edf71d1ce4dc9c621440c | |
parent | Datasnapshot: added "secret" to the registration/deregistration query so that... (diff) | |
parent | Add max thread and min thread information to "xengine status" region console ... (diff) | |
download | opensim-SC-37828c9b9a065e5ee4df06e05eecd1e0a41ea07e.zip opensim-SC-37828c9b9a065e5ee4df06e05eecd1e0a41ea07e.tar.gz opensim-SC-37828c9b9a065e5ee4df06e05eecd1e0a41ea07e.tar.bz2 opensim-SC-37828c9b9a065e5ee4df06e05eecd1e0a41ea07e.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
-rw-r--r-- | OpenSim/Data/MySQL/MySQLXAssetData.cs | 2 | ||||
-rw-r--r-- | OpenSim/Framework/MultipartForm.cs | 2 | ||||
-rw-r--r-- | OpenSim/Framework/WebUtil.cs | 7 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 3 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 2 | ||||
-rw-r--r-- | OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs | 2 | ||||
-rwxr-xr-x | bin/OpenSim.ini.example | 6 |
7 files changed, 15 insertions, 9 deletions
diff --git a/OpenSim/Data/MySQL/MySQLXAssetData.cs b/OpenSim/Data/MySQL/MySQLXAssetData.cs index 95ef72a..06fe55a 100644 --- a/OpenSim/Data/MySQL/MySQLXAssetData.cs +++ b/OpenSim/Data/MySQL/MySQLXAssetData.cs | |||
@@ -162,7 +162,7 @@ namespace OpenSim.Data.MySQL | |||
162 | using (GZipStream decompressionStream = new GZipStream(new MemoryStream(asset.Data), CompressionMode.Decompress)) | 162 | using (GZipStream decompressionStream = new GZipStream(new MemoryStream(asset.Data), CompressionMode.Decompress)) |
163 | { | 163 | { |
164 | MemoryStream outputStream = new MemoryStream(); | 164 | MemoryStream outputStream = new MemoryStream(); |
165 | WebUtil.CopyTo(decompressionStream, outputStream, int.MaxValue); | 165 | WebUtil.CopyStream(decompressionStream, outputStream, int.MaxValue); |
166 | // int compressedLength = asset.Data.Length; | 166 | // int compressedLength = asset.Data.Length; |
167 | asset.Data = outputStream.ToArray(); | 167 | asset.Data = outputStream.ToArray(); |
168 | 168 | ||
diff --git a/OpenSim/Framework/MultipartForm.cs b/OpenSim/Framework/MultipartForm.cs index 90c4007..7a13e8b 100644 --- a/OpenSim/Framework/MultipartForm.cs +++ b/OpenSim/Framework/MultipartForm.cs | |||
@@ -119,7 +119,7 @@ namespace OpenSim.Framework | |||
119 | // Copy the temporary stream to the network stream | 119 | // Copy the temporary stream to the network stream |
120 | formDataStream.Seek(0, SeekOrigin.Begin); | 120 | formDataStream.Seek(0, SeekOrigin.Begin); |
121 | using (Stream requestStream = request.GetRequestStream()) | 121 | using (Stream requestStream = request.GetRequestStream()) |
122 | formDataStream.CopyTo(requestStream, (int)formDataStream.Length); | 122 | formDataStream.CopyStream(requestStream, (int)formDataStream.Length); |
123 | } | 123 | } |
124 | 124 | ||
125 | #endregion Stream Writing | 125 | #endregion Stream Writing |
diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs index 77f3d9b..ead8f46 100644 --- a/OpenSim/Framework/WebUtil.cs +++ b/OpenSim/Framework/WebUtil.cs | |||
@@ -510,8 +510,13 @@ namespace OpenSim.Framework | |||
510 | /// <remarks> | 510 | /// <remarks> |
511 | /// Copying begins at the streams' current positions. The positions are | 511 | /// Copying begins at the streams' current positions. The positions are |
512 | /// NOT reset after copying is complete. | 512 | /// NOT reset after copying is complete. |
513 | /// NOTE!! .NET 4.0 adds the method 'Stream.CopyTo(stream, bufferSize)'. | ||
514 | /// This function could be replaced with that method once we move | ||
515 | /// totally to .NET 4.0. For versions before, this routine exists. | ||
516 | /// This routine used to be named 'CopyTo' but the int parameter has | ||
517 | /// a different meaning so this method was renamed to avoid any confusion. | ||
513 | /// </remarks> | 518 | /// </remarks> |
514 | public static int CopyTo(this Stream copyFrom, Stream copyTo, int maximumBytesToCopy) | 519 | public static int CopyStream(this Stream copyFrom, Stream copyTo, int maximumBytesToCopy) |
515 | { | 520 | { |
516 | byte[] buffer = new byte[4096]; | 521 | byte[] buffer = new byte[4096]; |
517 | int readBytes; | 522 | int readBytes; |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs index bc1902b..4010167 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | |||
@@ -578,7 +578,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
578 | return true; | 578 | return true; |
579 | 579 | ||
580 | if (!m_InSelfDelete) | 580 | if (!m_InSelfDelete) |
581 | { | ||
582 | // m_log.ErrorFormat("[SCRIPT INSTANCE]: Aborting script {0} {1}", ScriptName, ItemID); | ||
581 | result.Abort(); | 583 | result.Abort(); |
584 | } | ||
582 | 585 | ||
583 | lock (m_EventQueue) | 586 | lock (m_EventQueue) |
584 | { | 587 | { |
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index b433430..66349e3 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -384,6 +384,8 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
384 | 384 | ||
385 | sb.AppendFormat("Unique scripts : {0}\n", m_uniqueScripts.Count); | 385 | sb.AppendFormat("Unique scripts : {0}\n", m_uniqueScripts.Count); |
386 | sb.AppendFormat("Scripts waiting for load : {0}\n", m_CompileQueue.Count); | 386 | sb.AppendFormat("Scripts waiting for load : {0}\n", m_CompileQueue.Count); |
387 | sb.AppendFormat("Max threads : {0}\n", m_ThreadPool.MaxThreads); | ||
388 | sb.AppendFormat("Min threads : {0}\n", m_ThreadPool.MinThreads); | ||
387 | sb.AppendFormat("Allocated threads : {0}\n", m_ThreadPool.ActiveThreads); | 389 | sb.AppendFormat("Allocated threads : {0}\n", m_ThreadPool.ActiveThreads); |
388 | sb.AppendFormat("In use threads : {0}\n", m_ThreadPool.InUseThreads); | 390 | sb.AppendFormat("In use threads : {0}\n", m_ThreadPool.InUseThreads); |
389 | sb.AppendFormat("Work items waiting : {0}\n", m_ThreadPool.WaitingCallbacks); | 391 | sb.AppendFormat("Work items waiting : {0}\n", m_ThreadPool.WaitingCallbacks); |
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs index 99523a1..6bfc5cc 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianAssetServiceConnector.cs | |||
@@ -477,7 +477,7 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
477 | // Grab the asset data from the response stream | 477 | // Grab the asset data from the response stream |
478 | using (MemoryStream stream = new MemoryStream()) | 478 | using (MemoryStream stream = new MemoryStream()) |
479 | { | 479 | { |
480 | responseStream.CopyTo(stream, 4096); | 480 | responseStream.CopyStream(stream, Int32.MaxValue); |
481 | asset.Data = stream.ToArray(); | 481 | asset.Data = stream.ToArray(); |
482 | } | 482 | } |
483 | } | 483 | } |
diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index 08a6194..1f3cd0d 100755 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example | |||
@@ -172,6 +172,7 @@ | |||
172 | 172 | ||
173 | ;# {permissionmodules} {} {Permission modules to use (may specify multiple modules, separated by comma} {} DefaultPermissionsModule | 173 | ;# {permissionmodules} {} {Permission modules to use (may specify multiple modules, separated by comma} {} DefaultPermissionsModule |
174 | ;; Permission modules to use, separated by comma. | 174 | ;; Permission modules to use, separated by comma. |
175 | ;; Possible modules are DefaultPermissionsModule, PrimLimitsModule | ||
175 | ; permissionmodules = DefaultPermissionsModule | 176 | ; permissionmodules = DefaultPermissionsModule |
176 | 177 | ||
177 | ;# {serverside_object_permissions} {permissionmodules:DefaultPermissionsModule} {Activate permission handling by the sim?} {true false} true | 178 | ;# {serverside_object_permissions} {permissionmodules:DefaultPermissionsModule} {Activate permission handling by the sim?} {true false} true |
@@ -790,11 +791,6 @@ | |||
790 | ; Enabled = false | 791 | ; Enabled = false |
791 | 792 | ||
792 | 793 | ||
793 | [PrimLimitsModule] | ||
794 | ;# {EnforcePrimLimits} {} {Enforce parcel prim limits} {true false} false | ||
795 | ;; Enable parcel prim limits. Off by default to emulate pre-existing behavior. | ||
796 | ; EnforcePrimLimits = false | ||
797 | |||
798 | 794 | ||
799 | [Architecture] | 795 | [Architecture] |
800 | ;# {Include-Architecture} {} {Choose one of the following architectures} {config-include/Standalone.ini config-include/StandaloneHypergrid.ini config-include/Grid.ini config-include/GridHypergrid.ini config-include/SimianGrid.ini config-include/HyperSimianGrid.ini} config-include/Standalone.ini | 796 | ;# {Include-Architecture} {} {Choose one of the following architectures} {config-include/Standalone.ini config-include/StandaloneHypergrid.ini config-include/Grid.ini config-include/GridHypergrid.ini config-include/SimianGrid.ini config-include/HyperSimianGrid.ini} config-include/Standalone.ini |