Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
When a large packet is of type "reliable_sequenced" the byte size is …
Browse files Browse the repository at this point in the history
…1501 bytes which can cause massive network latency with certain routers
  • Loading branch information
ryanNealOpaque committed Oct 23, 2020
1 parent c547c89 commit e9173ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/ReliabilityLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2573,6 +2573,9 @@ BitSize_t ReliabilityLayer::GetMessageHeaderLengthBits( const InternalPacket *co
// unsigned short s; s = (unsigned short) internalPacket->dataBitLength; bitStream->WriteAlignedVar16((const char*)& s);
bitLength += 8*2;

if (internalPacket->reliability == RELIABLE_SEQUENCED)
bitLength += 8 * 1;

if ( internalPacket->reliability == RELIABLE ||
internalPacket->reliability == RELIABLE_SEQUENCED ||
internalPacket->reliability == RELIABLE_ORDERED ||
Expand Down

0 comments on commit e9173ad

Please sign in to comment.