Переглянути джерело

[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 роки тому
джерело
коміт
9546b0c17b
1 змінених файлів з 1 додано та 0 видалено
  1. 1
    0
      src/net/tcp.c

+ 1
- 0
src/net/tcp.c Переглянути файл

@@ -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 );

Завантаження…
Відмінити
Зберегти