Skip to content

Send the join player list in several packets - #364

Open
VertCode wants to merge 2 commits into
CraftCanvasMC:mainfrom
VertCodeDev:fix/join-player-list-batches
Open

VertCode wants to merge 2 commits into
CraftCanvasMC:mainfrom
VertCodeDev:fix/join-player-list-batches

Conversation

@VertCode

Copy link
Copy Markdown

Author: Wesley Breukers

Fixes joins failing once about 1,000 players are online. The joining player gets one player info packet with every online player, about 2KB each with a signed skin and chat key, and past ~1,000 entries it exceeds the 2MB frame limit. We saw this in production: joiners kicked with Packet too large: size 2097572 at ~1,000 online. The list is now sent in packets of 200; the client adds them to the same list, so nothing changes for it.

@Toffikk

Toffikk commented Oct 26, 2026

Copy link
Copy Markdown
Member

Patches haven’t been properly rebuilt; make sure to run the rebuild all task

@VertCode

Copy link
Copy Markdown
Author

Rebuilt, thanks. The feature patches on top of PlayerList had shifted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants