We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 939abd0 commit 371190fCopy full SHA for 371190f
src/generic/ReceiveReliabilityLayer.php
@@ -225,6 +225,10 @@ private function handleEncapsulatedPacket(EncapsulatedPacket $packet) : void{
225
226
$this->receiveOrderedIndex[$packet->orderChannel] = $i;
227
}elseif($packet->orderIndex > $this->receiveOrderedIndex[$packet->orderChannel]){
228
+ if(count($this->receiveOrderedPackets[$packet->orderChannel]) >= self::$WINDOW_SIZE){
229
+ //queue overflow for this channel - we should probably disconnect the peer at this point
230
+ return;
231
+ }
232
$this->receiveOrderedPackets[$packet->orderChannel][$packet->orderIndex] = $packet;
233
}else{
234
//duplicate/already received packet
0 commit comments