Detect a dead socket and reconnect before the grace period ends

Abierto
#61 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
lua
Área
networking

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Lua
Estrellas
10
Forks
8
Merge medio
1 d 18 h
PR fusionados (30 d)
20

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Balatro-Multiplayer/BalatroMultiplayerAPI

Todos los issues de Balatro-Multiplayer/BalatroMultiplayerAPI

Issues similares

Más issues de Lua

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.