瀏覽代碼

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

Loading…
取消
儲存