[Exploit] Spamming ServerboundFinishConfigurationPacket causes chunk lag & TPS drops

Aperta
#520 2 commenti 3 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java

Direzione di ricerca

Start by tracing handling for ServerboundFinishConfigurationPacket and the transition from the configuration phase to the Game phase. Reproduce the repeated-packet case described in the issue, then verify that extra packets no longer produce network-thread exceptions or cause chunk lag and TPS drops.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

status: needs triage type: performance
Profile link

https://github.com/Keoos1337

Description of issue

If a player sends a large number of ServerboundConfigurationFinishConfiguration packets, chunks around the sender start to lag and server TPS drops.
This packet is a terminal packet. After the first receipt, the server disables its outbound protocol and waits for the main thread to finish switching to the Game phase. During this async gap, extra packets are processed in an invalid state, throwing exceptions on the network thread that compete with chunk/entity ticking.

Plugin and Datapack List

none

Server config files

Default configuration

Folia version

1.21.11 latest

Other

No response

Lingua principale
Shell
Stelle
4.7k
Fork
651
Merge medio
10g 3h
PR unite (30g)
3

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PaperMC/Folia

Tutte le issue di PaperMC/Folia

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.