mirror of
https://github.com/ipxe/ipxe
synced 2025-12-17 18:11:49 +03:00
[tcp] Ensure FIN is actually sent if connection is closed while idle
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -400,6 +400,7 @@ static void tcp_close ( struct tcp_connection *tcp, int rc ) {
|
|||||||
|
|
||||||
tcp->tcp_state |= TCP_STATE_SENT ( TCP_FIN );
|
tcp->tcp_state |= TCP_STATE_SENT ( TCP_FIN );
|
||||||
tcp_dump_state ( tcp );
|
tcp_dump_state ( tcp );
|
||||||
|
process_add ( &tcp->process );
|
||||||
|
|
||||||
/* Add a pending operation for the FIN */
|
/* Add a pending operation for the FIN */
|
||||||
pending_get ( &tcp->pending_flags );
|
pending_get ( &tcp->pending_flags );
|
||||||
|
|||||||
Reference in New Issue
Block a user