diff options
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 9ae8dfb..c1b5781 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -329,6 +329,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
329 | private Prioritizer m_prioritizer; | 329 | private Prioritizer m_prioritizer; |
330 | private bool m_disableFacelights = false; | 330 | private bool m_disableFacelights = false; |
331 | 331 | ||
332 | private const uint MaxTransferBytesPerPacket = 600; | ||
333 | |||
334 | |||
332 | /// <value> | 335 | /// <value> |
333 | /// List used in construction of data blocks for an object update packet. This is to stop us having to | 336 | /// List used in construction of data blocks for an object update packet. This is to stop us having to |
334 | /// continually recreate it. | 337 | /// continually recreate it. |
@@ -2738,7 +2741,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
2738 | else | 2741 | else |
2739 | { | 2742 | { |
2740 | int processedLength = 0; | 2743 | int processedLength = 0; |
2741 | int maxChunkSize = Settings.MAX_PACKET_SIZE - 100; | 2744 | // int maxChunkSize = Settings.MAX_PACKET_SIZE - 100; |
2745 | |||
2746 | int maxChunkSize = (int) MaxTransferBytesPerPacket; | ||
2742 | int packetNumber = 0; | 2747 | int packetNumber = 0; |
2743 | 2748 | ||
2744 | while (processedLength < req.AssetInf.Data.Length) | 2749 | while (processedLength < req.AssetInf.Data.Length) |
@@ -12205,7 +12210,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
12205 | /// <returns></returns> | 12210 | /// <returns></returns> |
12206 | private static int CalculateNumPackets(byte[] data) | 12211 | private static int CalculateNumPackets(byte[] data) |
12207 | { | 12212 | { |
12208 | const uint m_maxPacketSize = 600; | 12213 | // const uint m_maxPacketSize = 600; |
12214 | uint m_maxPacketSize = MaxTransferBytesPerPacket; | ||
12209 | int numPackets = 1; | 12215 | int numPackets = 1; |
12210 | 12216 | ||
12211 | if (data == null) | 12217 | if (data == null) |