facebookarchive / RakNet

RakNet is a cross platform, open source, C++ networking engine for game programmers.
Other
3.3k stars 1.02k forks source link

split packet out-of-order issue #103

Open konser opened 7 years ago

konser commented 7 years ago

When udp packet greater than mtusize ,between times split packet send out-of-order

fixed: // Insert the packet into the SplitPacketChannel // find ReliabilityLayer.cpp file search // splitPacketChannelList[index]->splitPacketList.Insert(internalPacket, FILE, LINE ); // change to splitPacketChannelList[index]->splitPacketList.Replace(internalPacket, 0, internalPacket->splitPacketIndex, FILE, LINE);

找到ReliabilityLayer.cpp 文件中的 // splitPacketChannelList[index]->splitPacketList.Insert(internalPacket, FILE, LINE ); 行

//替换为 splitPacketChannelList[index]->splitPacketList.Replace(internalPacket, 0, internalPacket->splitPacketIndex, FILE, LINE);