浏览代码

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

正在加载...
取消
保存