Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Connect TCP with an invalid address is silent in the event log

Abierto Apto para principiantes
#241 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 4 días

@PRINCEKK122 ya está trabajando en esto.

Desde el 18/10/2026.

  • #242 de @PRINCEKK122 — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
77/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
rust
Área
desktop, devtools

Línea de trabajo

Empieza con connect_tcp_with_validation_and_save en relay/src/update.rs y luego lee tcp_validation_text en relay/src/view.rs y validate_tcp_addr en relay/src/state.rs. Sigue cómo llegan los fallos de conexión al registro de eventos y cómo se muestran los errores de validación. El trabajo está terminado cuando las direcciones vacías y mal formadas rechazadas aparecen en Recent events con mensajes distintos.

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

Descripción

Describe the bug

Pressing Connect TCP with an empty or malformed address does nothing visible in the event log. No connection is attempted and no entry is recorded, so the GUI looks like it ignored the press.

connect_tcp_with_validation_and_save (relay/src/update.rs:13) validates first. On failure it sets tcp_addr_validation_error and returns without calling tcp_connect, so none of the paths that normally report a connection problem are reached. The only feedback is one line of plain text rendered by tcp_validation_text (relay/src/view.rs:192), between the address box and the buttons, which is easy to miss.

The event log panel added in #183 exists so connection failures are visible. This is the one connection failure that never reaches it.

To Reproduce

  1. Start the relay.
  2. Leave the address box untouched. The greyed 127.0.0.1:9999 is placeholder text, not a value, so the field is empty.
  3. Press Connect TCP.
  4. Nothing appears in Recent events. The mock server never reports a connection. Pressing Check TCP Connection Status does nothing, because there is no connection to check.

Expected behavior

A rejected address is recorded in the event log like every other connection failure, and the message distinguishes an empty field from a malformed one.

Additional context

The empty-field case is the one that costs time, because validate_tcp_addr (relay/src/state.rs:345) returns the same "Invalid IP address" text for an empty string as for a typo, which reads as though something was typed wrong rather than not typed at all.

Hit while testing #234: roughly half an hour went to diagnosing a relay that appeared not to connect, with nothing in the log to work from.

Lenguaje dominante
Rust
Estrellas
4
Forks
9
Merge medio
5 d 13 h
PR fusionados (30 d)
13

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 oss-slu/PilotDataSynchronization

Todos los issues de oss-slu/PilotDataSynchronization

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.