mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Add some length to the backet buffer for packet sending so oversize
inventory packets don't make us barf
This commit is contained in:
@@ -327,7 +327,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
// The vast majority of packets are less than 200 bytes, although due to asset transfers and packet splitting
|
||||
// there are a decent number of packets in the 1000-1140 byte range. We allocate one of two sizes of data here
|
||||
// to accomodate for both common scenarios and provide ample room for ACK appending in both
|
||||
int bufferSize = (dataLength > 180) ? LLUDPServer.MTU : 200;
|
||||
int bufferSize = (dataLength > 180) ? LLUDPServer.MTU + 1000 : 200;
|
||||
|
||||
UDPPacketBuffer buffer = new UDPPacketBuffer(udpClient.RemoteEndPoint, bufferSize);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user