diff options
author | Michael Brown <mcb30@ipxe.org> | 2015-07-18 10:57:51 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-07-22 21:16:40 +0100 |
commit | 9546b0c17bfa01b7c3c0b3162187f4357c4c03d4 (patch) | |
tree | 3e8bbe805de7cc1df4d46c8098d44be6f6595b9e /src/net | |
parent | a200ad462e69de8c92b4114f6e58d7dbfefaf40e (diff) | |
download | ipxe-9546b0c17bfa01b7c3c0b3162187f4357c4c03d4.zip ipxe-9546b0c17bfa01b7c3c0b3162187f4357c4c03d4.tar.gz ipxe-9546b0c17bfa01b7c3c0b3162187f4357c4c03d4.tar.bz2 |
[tcp] Ensure FIN is actually sent if connection is closed while idle
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/tcp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/tcp.c b/src/net/tcp.c index 1ead711..c69c83b 100644 --- a/src/net/tcp.c +++ b/src/net/tcp.c @@ -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 ); |