Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
commit
37828c9b9a
|
@ -162,7 +162,7 @@ namespace OpenSim.Data.MySQL
|
||||||
using (GZipStream decompressionStream = new GZipStream(new MemoryStream(asset.Data), CompressionMode.Decompress))
|
using (GZipStream decompressionStream = new GZipStream(new MemoryStream(asset.Data), CompressionMode.Decompress))
|
||||||
{
|
{
|
||||||
MemoryStream outputStream = new MemoryStream();
|
MemoryStream outputStream = new MemoryStream();
|
||||||
WebUtil.CopyTo(decompressionStream, outputStream, int.MaxValue);
|
WebUtil.CopyStream(decompressionStream, outputStream, int.MaxValue);
|
||||||
// int compressedLength = asset.Data.Length;
|
// int compressedLength = asset.Data.Length;
|
||||||
asset.Data = outputStream.ToArray();
|
asset.Data = outputStream.ToArray();
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,7 @@ namespace OpenSim.Framework
|
||||||
// Copy the temporary stream to the network stream
|
// Copy the temporary stream to the network stream
|
||||||
formDataStream.Seek(0, SeekOrigin.Begin);
|
formDataStream.Seek(0, SeekOrigin.Begin);
|
||||||
using (Stream requestStream = request.GetRequestStream())
|
using (Stream requestStream = request.GetRequestStream())
|
||||||
formDataStream.CopyTo(requestStream, (int)formDataStream.Length);
|
formDataStream.CopyStream(requestStream, (int)formDataStream.Length);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion Stream Writing
|
#endregion Stream Writing
|
||||||
|
|
|
@ -510,8 +510,13 @@ namespace OpenSim.Framework
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Copying begins at the streams' current positions. The positions are
|
/// Copying begins at the streams' current positions. The positions are
|
||||||
/// NOT reset after copying is complete.
|
/// NOT reset after copying is complete.
|
||||||
|
/// NOTE!! .NET 4.0 adds the method 'Stream.CopyTo(stream, bufferSize)'.
|
||||||
|
/// This function could be replaced with that method once we move
|
||||||
|
/// totally to .NET 4.0. For versions before, this routine exists.
|
||||||
|
/// This routine used to be named 'CopyTo' but the int parameter has
|
||||||
|
/// a different meaning so this method was renamed to avoid any confusion.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public static int CopyTo(this Stream copyFrom, Stream copyTo, int maximumBytesToCopy)
|
public static int CopyStream(this Stream copyFrom, Stream copyTo, int maximumBytesToCopy)
|
||||||
{
|
{
|
||||||
byte[] buffer = new byte[4096];
|
byte[] buffer = new byte[4096];
|
||||||
int readBytes;
|
int readBytes;
|
||||||
|
|
|
@ -578,7 +578,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (!m_InSelfDelete)
|
if (!m_InSelfDelete)
|
||||||
|
{
|
||||||
|
// m_log.ErrorFormat("[SCRIPT INSTANCE]: Aborting script {0} {1}", ScriptName, ItemID);
|
||||||
result.Abort();
|
result.Abort();
|
||||||
|
}
|
||||||
|
|
||||||
lock (m_EventQueue)
|
lock (m_EventQueue)
|
||||||
{
|
{
|
||||||
|
|
|
@ -384,6 +384,8 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||||
|
|
||||||
sb.AppendFormat("Unique scripts : {0}\n", m_uniqueScripts.Count);
|
sb.AppendFormat("Unique scripts : {0}\n", m_uniqueScripts.Count);
|
||||||
sb.AppendFormat("Scripts waiting for load : {0}\n", m_CompileQueue.Count);
|
sb.AppendFormat("Scripts waiting for load : {0}\n", m_CompileQueue.Count);
|
||||||
|
sb.AppendFormat("Max threads : {0}\n", m_ThreadPool.MaxThreads);
|
||||||
|
sb.AppendFormat("Min threads : {0}\n", m_ThreadPool.MinThreads);
|
||||||
sb.AppendFormat("Allocated threads : {0}\n", m_ThreadPool.ActiveThreads);
|
sb.AppendFormat("Allocated threads : {0}\n", m_ThreadPool.ActiveThreads);
|
||||||
sb.AppendFormat("In use threads : {0}\n", m_ThreadPool.InUseThreads);
|
sb.AppendFormat("In use threads : {0}\n", m_ThreadPool.InUseThreads);
|
||||||
sb.AppendFormat("Work items waiting : {0}\n", m_ThreadPool.WaitingCallbacks);
|
sb.AppendFormat("Work items waiting : {0}\n", m_ThreadPool.WaitingCallbacks);
|
||||||
|
|
|
@ -477,7 +477,7 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
||||||
// Grab the asset data from the response stream
|
// Grab the asset data from the response stream
|
||||||
using (MemoryStream stream = new MemoryStream())
|
using (MemoryStream stream = new MemoryStream())
|
||||||
{
|
{
|
||||||
responseStream.CopyTo(stream, 4096);
|
responseStream.CopyStream(stream, Int32.MaxValue);
|
||||||
asset.Data = stream.ToArray();
|
asset.Data = stream.ToArray();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -172,6 +172,7 @@
|
||||||
|
|
||||||
;# {permissionmodules} {} {Permission modules to use (may specify multiple modules, separated by comma} {} DefaultPermissionsModule
|
;# {permissionmodules} {} {Permission modules to use (may specify multiple modules, separated by comma} {} DefaultPermissionsModule
|
||||||
;; Permission modules to use, separated by comma.
|
;; Permission modules to use, separated by comma.
|
||||||
|
;; Possible modules are DefaultPermissionsModule, PrimLimitsModule
|
||||||
; permissionmodules = DefaultPermissionsModule
|
; permissionmodules = DefaultPermissionsModule
|
||||||
|
|
||||||
;# {serverside_object_permissions} {permissionmodules:DefaultPermissionsModule} {Activate permission handling by the sim?} {true false} true
|
;# {serverside_object_permissions} {permissionmodules:DefaultPermissionsModule} {Activate permission handling by the sim?} {true false} true
|
||||||
|
@ -790,11 +791,6 @@
|
||||||
; Enabled = false
|
; Enabled = false
|
||||||
|
|
||||||
|
|
||||||
[PrimLimitsModule]
|
|
||||||
;# {EnforcePrimLimits} {} {Enforce parcel prim limits} {true false} false
|
|
||||||
;; Enable parcel prim limits. Off by default to emulate pre-existing behavior.
|
|
||||||
; EnforcePrimLimits = false
|
|
||||||
|
|
||||||
|
|
||||||
[Architecture]
|
[Architecture]
|
||||||
;# {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
|
;# {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
|
||||||
|
|
Loading…
Reference in New Issue