diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Capabilities/Caps.cs | 12 | ||||
-rw-r--r-- | OpenSim/Framework/IClientAPI.cs | 2 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/BinaryStreamHandler.cs | 4 | ||||
-rw-r--r-- | OpenSim/Framework/Watchdog.cs | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/OpenSim/Framework/Capabilities/Caps.cs b/OpenSim/Framework/Capabilities/Caps.cs index 5937ae6..dbb0781 100644 --- a/OpenSim/Framework/Capabilities/Caps.cs +++ b/OpenSim/Framework/Capabilities/Caps.cs | |||
@@ -1344,7 +1344,11 @@ namespace OpenSim.Framework.Capabilities | |||
1344 | /// <returns></returns> | 1344 | /// <returns></returns> |
1345 | public string uploaderCaps(byte[] data, string path, string param) | 1345 | public string uploaderCaps(byte[] data, string path, string param) |
1346 | { | 1346 | { |
1347 | m_log.WarnFormat("[CAPS] baked texture upload completed for {0}",newAssetID); | 1347 | handlerUpLoad = OnUpLoad; |
1348 | if (handlerUpLoad != null) | ||
1349 | { | ||
1350 | Util.FireAndForget(delegate(object o) { handlerUpLoad(newAssetID, data); }); | ||
1351 | } | ||
1348 | 1352 | ||
1349 | string res = String.Empty; | 1353 | string res = String.Empty; |
1350 | LLSDAssetUploadComplete uploadComplete = new LLSDAssetUploadComplete(); | 1354 | LLSDAssetUploadComplete uploadComplete = new LLSDAssetUploadComplete(); |
@@ -1356,12 +1360,6 @@ namespace OpenSim.Framework.Capabilities | |||
1356 | 1360 | ||
1357 | httpListener.RemoveStreamHandler("POST", uploaderPath); | 1361 | httpListener.RemoveStreamHandler("POST", uploaderPath); |
1358 | 1362 | ||
1359 | handlerUpLoad = OnUpLoad; | ||
1360 | if (handlerUpLoad != null) | ||
1361 | { | ||
1362 | handlerUpLoad(newAssetID, data); | ||
1363 | } | ||
1364 | |||
1365 | m_log.InfoFormat("[CAPS] baked texture upload completed for {0}",newAssetID); | 1363 | m_log.InfoFormat("[CAPS] baked texture upload completed for {0}",newAssetID); |
1366 | 1364 | ||
1367 | return res; | 1365 | return res; |
diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs index 1a59cf4..34ec420 100644 --- a/OpenSim/Framework/IClientAPI.cs +++ b/OpenSim/Framework/IClientAPI.cs | |||
@@ -1062,6 +1062,8 @@ namespace OpenSim.Framework | |||
1062 | 1062 | ||
1063 | void SendXferPacket(ulong xferID, uint packet, byte[] data); | 1063 | void SendXferPacket(ulong xferID, uint packet, byte[] data); |
1064 | 1064 | ||
1065 | void SendAbortXferPacket(ulong xferID); | ||
1066 | |||
1065 | void SendEconomyData(float EnergyEfficiency, int ObjectCapacity, int ObjectCount, int PriceEnergyUnit, | 1067 | void SendEconomyData(float EnergyEfficiency, int ObjectCapacity, int ObjectCount, int PriceEnergyUnit, |
1066 | int PriceGroupCreate, int PriceObjectClaim, float PriceObjectRent, | 1068 | int PriceGroupCreate, int PriceObjectClaim, float PriceObjectRent, |
1067 | float PriceObjectScaleFactor, | 1069 | float PriceObjectScaleFactor, |
diff --git a/OpenSim/Framework/Servers/HttpServer/BinaryStreamHandler.cs b/OpenSim/Framework/Servers/HttpServer/BinaryStreamHandler.cs index 86fa44d..bae4e1b 100644 --- a/OpenSim/Framework/Servers/HttpServer/BinaryStreamHandler.cs +++ b/OpenSim/Framework/Servers/HttpServer/BinaryStreamHandler.cs | |||
@@ -53,8 +53,8 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
53 | 53 | ||
54 | private static byte[] ReadFully(Stream stream) | 54 | private static byte[] ReadFully(Stream stream) |
55 | { | 55 | { |
56 | byte[] buffer = new byte[32768]; | 56 | byte[] buffer = new byte[1024]; |
57 | using (MemoryStream ms = new MemoryStream()) | 57 | using (MemoryStream ms = new MemoryStream(1024*256)) |
58 | { | 58 | { |
59 | while (true) | 59 | while (true) |
60 | { | 60 | { |
diff --git a/OpenSim/Framework/Watchdog.cs b/OpenSim/Framework/Watchdog.cs index 9baf3a0..3389ecb 100644 --- a/OpenSim/Framework/Watchdog.cs +++ b/OpenSim/Framework/Watchdog.cs | |||
@@ -127,7 +127,7 @@ namespace OpenSim.Framework | |||
127 | m_threads.Add(threadInfo.Thread.ManagedThreadId, threadInfo); | 127 | m_threads.Add(threadInfo.Thread.ManagedThreadId, threadInfo); |
128 | } | 128 | } |
129 | 129 | ||
130 | private static bool RemoveThread(int threadID) | 130 | public static bool RemoveThread(int threadID) |
131 | { | 131 | { |
132 | lock (m_threads) | 132 | lock (m_threads) |
133 | return m_threads.Remove(threadID); | 133 | return m_threads.Remove(threadID); |