CC: Tweaked

CC: Tweaked

42M Downloads

Uploading files larger than 32 kB causes client disconnection.

toad-dev opened this issue ยท 1 comments

commented

Minecraft Version

1.16.x

Version

1.100.2

Details

Reproduction Steps:

  1. Connect to dedicated server.
  2. Drag and drop a file between 32 kB and 512 kB. Here's a test file. The .log extension was just so github would let me upload it.
  3. Client connection will be lost.
    Screenshot from 2022-01-23 21-12-05

Notes

  • Logs don't show any additional info:
[23Jan2022 21:11:42.316] [Server thread/INFO] [net.minecraft.network.play.ServerPlayNetHandler/]: Dev lost connection: Internal Exception: io.netty.handler.codec.DecoderException: java.io.IOException: Payload may not be larger than 32767 bytes
[23Jan2022 21:11:42.316] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Dev left the game
  • This only happens when connected to the dedicated server.
commented

Hah, I'm sure I tested this code at the time, wonder what went wrong. Clearly should have written some unit tests :D.