Skip to content

Player get kicked due to out-of-order chat when sending messages rapidly #909

@Glucy-2

Description

@Glucy-2

Velocity version: 3.1.2-SNAPSHOT-201

  • No Velocity plugin installed
  • No matter whether the value of force-key-authentication is true or false, the player will be kicked
  • I've tested modern and none player info forwarding mode

Server: 1.19.3, fabric with mods: fabric-api, fabric-carpet, carpet-tis-addition, fabricproxy-lite
Velocity log:

[16:02:00 INFO]: [connected player] AnnaNo (/113.x.x.x:56524) has connected
[16:02:00 INFO]: [server connection] AnnaNo -> mirror has connected
[16:02:38 INFO]: [connected player] AnnaNo (/113.x.x.x:56524) -> executed command /gamerule sendCommandFeedback
[16:02:38 INFO]: [connected player] AnnaNo (/113.x.x.x:56524) -> executed command /fill 9 -32 256 10 -32 256 minecraft:iron_block replace air
[16:02:38 INFO]: [connected player] AnnaNo (/113.x.x.x:56524) -> executed command /setblock 9 -32 257 minecraft:observer[facing=south,powered=false]
[16:02:38 INFO]: [connected player] AnnaNo (/113.x.x.x:56524) -> executed command /fill 9 -29 256 9 -29 257 minecraft:redstone_wire[east=none,north=side,power=0,south=side,west=none] replace air
...
[16:02:38 INFO]: [connected player] AnnaNo (/113.x.x.x:56524) -> executed command /setblock 11 -29 256 minecraft:white_stained_glass
[16:02:38 INFO]: [connected player] AnnaNo (/113.x.x.x:56524): kicked from server mirror: multiplayer.disconnect.out_of_order_chat
[16:02:38 INFO]: [server connection] AnnaNo -> mirror has disconnected
[16:02:38 INFO]: [connected player] AnnaNo (/113.x.x.x:56524) has disconnected: You were kicked from mirror: multiplayer.disconnect.out_of_order_chat

fabric server log:

[16:02:00] [Server thread/INFO]: AnnaNo[/113.x.x.x:49340] logged in with entity id 142 at (-0.4497645856701771, -40.0, 248.48987400782113)
[16:02:00] [Server thread/INFO]: AnnaNo joined the game
[16:02:01] [Server thread/INFO]: Player AnnaNo joined with a matching carpet client
[16:02:38] [Netty Epoll Server IO #3/WARN]: AnnaNo sent out-of-order chat: 'fill 9 -29 256 9 -29 257 minecraft:redstone_wire[east=none,north=side,power=0,south=side,west=none] replace air'
[16:02:38] [Server thread/INFO]: [AnnaNo: Changed the block at 9, -32, 257]
[16:02:38] [Server thread/INFO]: [AnnaNo: Successfully filled 2 blocks]
[16:02:38] [Server thread/INFO]: [AnnaNo: Changed the block at 9, -34, 258]
[16:02:38] [Server thread/INFO]: [AnnaNo: Changed the block at 9, -33, 258]
[16:02:38] [Server thread/INFO]: [AnnaNo: Changed the block at 9, -32, 258]
[16:02:38] [Server thread/INFO]: [AnnaNo: Changed the block at 9, -31, 258]
[16:02:38] [Server thread/INFO]: [AnnaNo: Changed the block at 9, -30, 258]
[16:02:38] [Server thread/INFO]: [AnnaNo: Changed the block at 9, -29, 258]
[16:02:38] [Server thread/INFO]: [AnnaNo: Changed the block at 9, -28, 258]
[16:02:38] [Server thread/INFO]: [AnnaNo: Changed the block at 9, -27, 258]
[16:02:38] [Server thread/INFO]: AnnaNo lost connection: Out-of-order chat packet received. Did your system time change?
[16:02:38] [Server thread/INFO]: AnnaNo left the game
[16:02:38] [Server thread/INFO]: [AnnaNo: Changed the block at 9, -26, 258]
[16:02:38] [Server thread/INFO]: [AnnaNo: Changed the block at 9, -25, 258]
[16:02:38] [Server thread/INFO]: [AnnaNo: Changed the block at 9, -24, 258]
[16:02:38] [Server thread/INFO]: [AnnaNo: Changed the block at 9, -34, 259]
[16:02:38] [Server thread/INFO]: [AnnaNo: Changed the block at 9, -33, 259]
[16:02:38] [Server thread/INFO]: [AnnaNo: Changed the block at 9, -32, 259]
[16:02:38] [Server thread/INFO]: [AnnaNo: Changed the block at 9, -25, 259]
[16:02:38] [Server thread/INFO]: [AnnaNo: Changed the block at 9, -24, 259]
[16:02:38] [Server thread/WARN]: handleDisconnection() called twice

When directly connect to the fabric server or use Waterfall as proxy (delete fabricproxy-lite mod), player won't be kicked due to out-of-order chat

To reproduce:

  1. Set-up a 1.19.3 fabric server and install mods: fabric-api, fabric-carpet, carpet-tis-addition, fabricproxy-lite
  2. Start the fabric server and enter carpet antiSpamDisabled true to disable spamming checks on players
  3. Set-up 3.1.2-SNAPSHOT-201 Velocity and start it
  4. Connect using a client with litematica mod and paste a schematic (or maybe some other methods that can send more than about 50 messages per second)
  5. Client get kicked due to out-of-order chat

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions