mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-05 01:29:55 +00:00
Reduce packets-per-batch limit to 100
this should be well in excess of requirements with the ItemStackRequest system in use.
This commit is contained in:
parent
8408da8534
commit
23ea721164
@ -376,7 +376,7 @@ class NetworkSession{
|
|||||||
$stream = new BinaryStream($decompressed);
|
$stream = new BinaryStream($decompressed);
|
||||||
$count = 0;
|
$count = 0;
|
||||||
foreach(PacketBatch::decodeRaw($stream) as $buffer){
|
foreach(PacketBatch::decodeRaw($stream) as $buffer){
|
||||||
if(++$count > 1300){
|
if(++$count > 100){
|
||||||
throw new PacketHandlingException("Too many packets in batch");
|
throw new PacketHandlingException("Too many packets in batch");
|
||||||
}
|
}
|
||||||
$packet = $this->packetPool->getPacket($buffer);
|
$packet = $this->packetPool->getPacket($buffer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user