diff options
author | Melanie | 2009-11-04 22:47:40 +0000 |
---|---|---|
committer | Melanie | 2009-11-04 22:47:40 +0000 |
commit | 58be90d2b167719267fde18f2983b5a64f8b6f37 (patch) | |
tree | c7ee8170b38543cbe98cf79aa603196176e7c22e /OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | |
parent | minor: remove some mono compiler warnings (diff) | |
download | opensim-SC-58be90d2b167719267fde18f2983b5a64f8b6f37.zip opensim-SC-58be90d2b167719267fde18f2983b5a64f8b6f37.tar.gz opensim-SC-58be90d2b167719267fde18f2983b5a64f8b6f37.tar.bz2 opensim-SC-58be90d2b167719267fde18f2983b5a64f8b6f37.tar.xz |
Add some length to the backet buffer for packet sending so oversize
inventory packets don't make us barf
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs index 93946ae..93c3270 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | |||
@@ -327,7 +327,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
327 | // The vast majority of packets are less than 200 bytes, although due to asset transfers and packet splitting | 327 | // The vast majority of packets are less than 200 bytes, although due to asset transfers and packet splitting |
328 | // there are a decent number of packets in the 1000-1140 byte range. We allocate one of two sizes of data here | 328 | // there are a decent number of packets in the 1000-1140 byte range. We allocate one of two sizes of data here |
329 | // to accomodate for both common scenarios and provide ample room for ACK appending in both | 329 | // to accomodate for both common scenarios and provide ample room for ACK appending in both |
330 | int bufferSize = (dataLength > 180) ? LLUDPServer.MTU : 200; | 330 | int bufferSize = (dataLength > 180) ? LLUDPServer.MTU + 1000 : 200; |
331 | 331 | ||
332 | UDPPacketBuffer buffer = new UDPPacketBuffer(udpClient.RemoteEndPoint, bufferSize); | 332 | UDPPacketBuffer buffer = new UDPPacketBuffer(udpClient.RemoteEndPoint, bufferSize); |
333 | 333 | ||