Detect a dead socket and reconnect before the grace period ends

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

Maintainer thường phản hồi trong vòng 2 ngày

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
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
lua
Lĩnh vực
networking

Hướng nghiên cứu

Start by locating the client socket read and reconnect handling; the issue does not name files or tests. Trace how incoming messages and the grace-forfeit period are handled, then check what test or local multiplayer setup exercises a silent socket. Done means the client detects silence, pings, and reconnects when no response arrives before the grace period ends.

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

Mô tả

The client has no read timeout and sends no ping of its own. So when the socket went silent, the client waits until the grace forfeit has already happened.

I propose: When nothing arrives for 10 to 30 seconds, send a ping. If there is no response then reconnect.

Ngôn ngữ chính
Lua
Star
10
Fork
8
Merge trung bình
1 ngày 18 giờ
Pull request đã merge (30 ngày)
20

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

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 Balatro-Multiplayer/BalatroMultiplayerAPI

Tất cả issue của Balatro-Multiplayer/BalatroMultiplayerAPI

Issue tương tự

Thêm issue về Lua

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.