Velocity icon indicating copy to clipboard operation
Velocity copied to clipboard

Error with Packet size of protocols

Open SimonMage opened this issue 1 year ago • 12 comments

Hello, I have I problems on my server and using a plugin open source BetterHud I have made my custom hud on my backend server but Velocity kicks me from the proxy because the hud made with resourcepack is too much than Velociy accepts, as you can see on log. Please give me the possibility to increase that packet size or fix it. Obviously without Velocity as Proxy everything works fine.

2024-06-16-3.log

SimonMage avatar Jun 16 '24 13:06 SimonMage

Log made with mcpaste.io

https://mcpaste.io/d735a60b8625d300

SimonMage avatar Jun 16 '24 13:06 SimonMage

Looks like when they moved the packets over to the codec system they got rid of the packet specific component size limits

electronicboy avatar Jun 16 '24 13:06 electronicboy

I'm not an expert but this means that can be fixed by Velocity right?

Looks like when they moved the packets over to the codec system they got rid of the packet specific component size limits

SimonMage avatar Jun 16 '24 13:06 SimonMage

Yes, we just need to increase the limits for versions after that change; I just can't touch much because I'm recovering from surgery

electronicboy avatar Jun 16 '24 14:06 electronicboy

Thank you so much and I hope you to recover faster, good health!

Yes, we just need to increase the limits for versions after that change; I just can't touch much because I'm recovering from surgery

SimonMage avatar Jun 16 '24 14:06 SimonMage

Hey 👋🏻 any news about it? It was just needed to increase the limits right?

SimonMage avatar Jun 17 '24 20:06 SimonMage

Screenshot_1

I noticed that in some cases the size is variable, in this case is over 90.000.

Please increase to a number very big or make a config in velocity.toml to change the default value for future problems

Yes, we just need to increase the limits for versions after that change; I just can't touch much because I'm recovering from surgery

SimonMage avatar Jun 18 '24 15:06 SimonMage

We are not going to expose a config option. When this is fixed, the packet limit will reflect the protocol network limit as determined by the vanilla spec.

electronicboy avatar Jun 18 '24 15:06 electronicboy

We are not going to expose a config option. When this is fixed, the packet limit will reflect the protocol network limit as determined by the vanilla spec.

Oh really? And how much is the packet limit for Minecraft 1.20.2 ?

SimonMage avatar Jun 18 '24 16:06 SimonMage

We are not going to expose a config option. When this is fixed, the packet limit will reflect the protocol network limit as determined by the vanilla spec.

Any news about htis update?

SimonMage00 avatar Jul 02 '24 19:07 SimonMage00

We are not going to expose a config option. When this is fixed, the packet limit will reflect the protocol network limit as determined by the vanilla spec.

Any news

SimonMage avatar Jul 30 '24 17:07 SimonMage

I am still blind

if somebody knows the protocol version the limit was bumped, and to what, this would make my life easier, unless somebody can submit a PR, etc

electronicboy avatar Jul 30 '24 20:07 electronicboy