pmmp / PocketMine-MP

A server software for Minecraft: Bedrock Edition in PHP
https://pmmp.io
GNU Lesser General Public License v3.0
3.25k stars 1.53k forks source link

With a large radius of chunks, the packet sending speed limit is triggered #5532

Closed Gaprix closed 1 year ago

Gaprix commented 1 year ago

Steps to reproduce the issue

  1. Set the chunk radius to 95 (server.properties and client)
  2. Fly high
  3. Wait for world autosave
  4. "Receiving packets too fast" exception

OS and versions

Command output | This server is running PocketMine-MP Command output | Server version: 5.0.0-ALPHA8 (git hash: 5aa8b953a817491ea04f33cb1bc1e17e94796acf) Command output | Compatible Minecraft version: 1.19.50 (protocol version: 560) Command output | PHP version: 8.2.1 Command output | PHP JIT: disabled Command output | Operating system: linux

Plugins

none

Crashdump, backtrace or other files

изображение https://pastebin.com/PNJ95yPN

Gaprix commented 1 year ago

I noticed that this happens right after saving the world

dktapps commented 1 year ago

How long did the world take to autosave?

Gaprix commented 1 year ago

As you can see in the log, saving takes 44.226s

dktapps commented 1 year ago

Wow, that's pretty bad. The packet limiter allows a backlog of 5 seconds before it kicks you off the server.