[BUG] State Transition from eCONNECT_SYN to eCLOSE_WAIT?

Aperta
#1,301 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@94xhn ci sta già lavorando.

Dal 10/7/2026.

  • #1355 di @94xhn — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
18/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
c
Ambito
networking

Direzione di ricerca

Start with the SYN-SENT error handling in source/FreeRTOS_TCP_Transmission.c, lines 115-139 of the linked commit, and trace which state the connection moves to on failure or timeout. Pull request #1355 is already open against this issue, so check it and its review thread before starting any change. Done means that failed or timed-out connection attempts end in the closed state, as RFC 793 requires, and that the existing networking tests still pass.

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

Descrizione

bug

Describe the bug
The TCP state machine incorrectly transitions from eCONNECT_SYN (SYN-SENT) to eCLOSE_WAIT in error scenarios. Per RFC 793, connections that fail during establishment should transition to eCLOSED, not eCLOSE_WAIT.

https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/22c095e9c3bff7773085dd9b061a0013200eadda/source/FreeRTOS_TCP_Transmission.c#L115-L139

RFC 793 Compliance Issue

RFC 793 specifies that SYN-SENT state errors/timeouts should transition to CLOSED, not CLOSE-WAIT.

Lingua principale
C
Stelle
215
Fork
222
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

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 FreeRTOS/FreeRTOS-Plus-TCP

Tutte le issue di FreeRTOS/FreeRTOS-Plus-TCP

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.