Browse Source

[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 years ago
parent
commit
9546b0c17b
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/net/tcp.c

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

400
 
400
 
401
 		tcp->tcp_state |= TCP_STATE_SENT ( TCP_FIN );
401
 		tcp->tcp_state |= TCP_STATE_SENT ( TCP_FIN );
402
 		tcp_dump_state ( tcp );
402
 		tcp_dump_state ( tcp );
403
+		process_add ( &tcp->process );
403
 
404
 
404
 		/* Add a pending operation for the FIN */
405
 		/* Add a pending operation for the FIN */
405
 		pending_get ( &tcp->pending_flags );
406
 		pending_get ( &tcp->pending_flags );

Loading…
Cancel
Save