Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set true custom payload channel size limit #10006

Merged
merged 4 commits into from
Dec 25, 2023

Conversation

EpicPlayerA10
Copy link
Contributor

@EpicPlayerA10 EpicPlayerA10 commented Dec 8, 2023

According to Plugin Message packet the channel itself does not have a limit, but Identifier has a limit. If we look up here we can see that Identifier can hold text of length 32767 bytes. So the max possible channel size is that 32767 bytes.

I wonder why spigot left there so small channel size limit. Maybe it's because minecraft used to have a limit set on the channel name but now it doesn't.
EDIT: Yeah it would match: https://wiki.vg/index.php?title=Plugin_channels&diff=14556&oldid=14514

Related issue: #10003

@EpicPlayerA10 EpicPlayerA10 requested a review from a team as a code owner December 8, 2023 18:32
@kennytv
Copy link
Member

kennytv commented Dec 10, 2023

I'd keep the system property in case someone wants to lower it for whatever reason

@EpicPlayerA10
Copy link
Contributor Author

I'd keep the system property in case someone wants to lower it for whatever reason

Alright

Copy link
Contributor

@lynxplay lynxplay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merger pls use java.lang.Short.MAX_VALUE

@Machine-Maker Machine-Maker linked an issue Dec 17, 2023 that may be closed by this pull request
@lynxplay lynxplay force-pushed the fix/set-true-channel-size-limit branch from 118497a to 439d476 Compare December 17, 2023 02:59
@kennytv kennytv merged commit ff7b9b0 into PaperMC:master Dec 25, 2023
1 check passed
lynxplay pushed a commit to lynxplay/paper that referenced this pull request Feb 23, 2024
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.

Channel name length restriction is too short
4 participants