Sfoglia il codice sorgente

[tcp] Ensure FIN is actually sent if connection is closed while idle

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 anni fa
parent
commit
9546b0c17b
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1
    0
      src/net/tcp.c

+ 1
- 0
src/net/tcp.c Vedi File

@@ -400,6 +400,7 @@ static void tcp_close ( struct tcp_connection *tcp, int rc ) {
400 400
 
401 401
 		tcp->tcp_state |= TCP_STATE_SENT ( TCP_FIN );
402 402
 		tcp_dump_state ( tcp );
403
+		process_add ( &tcp->process );
403 404
 
404 405
 		/* Add a pending operation for the FIN */
405 406
 		pending_get ( &tcp->pending_flags );

Loading…
Annulla
Salva