[Exploit] Spamming ServerboundFinishConfigurationPacket causes chunk lag & TPS drops

Đang mở
#520 2 bình luận 3 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
networking, performance

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Shell
Star
4.7k
Fork
651
Merge trung bình
10 ngày 3 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PaperMC/Folia

Tất cả issue của PaperMC/Folia

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.