]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[tcp] Ensure FIN is actually sent if connection is closed while idle
authorMichael Brown <mcb30@ipxe.org>
Sat, 18 Jul 2015 09:57:51 +0000 (10:57 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 22 Jul 2015 20:16:40 +0000 (21:16 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/tcp.c

index 1ead711297e5a944f595fd82f00735feb6434356..c69c83b85fc05874fdfd0270c5a9ceb26fc1f96c 100644 (file)
@@ -400,6 +400,7 @@ static void tcp_close ( struct tcp_connection *tcp, int rc ) {
 
                tcp->tcp_state |= TCP_STATE_SENT ( TCP_FIN );
                tcp_dump_state ( tcp );
+               process_add ( &tcp->process );
 
                /* Add a pending operation for the FIN */
                pending_get ( &tcp->pending_flags );