DragonOS/kernel
LoGin ff5082c1ea
fix(net/tcp): 修复TCP套接字关闭和接收逻辑 (#1690)
* fix(net/tcp): 修复TCP套接字关闭和接收逻辑

- 修复TCP套接字关闭时未处理未读数据的问题
- 修复接收逻辑中状态检查错误返回ECONNRESET的问题
- 添加cork缓冲区刷新互斥锁防止重复刷新

Signed-off-by: longjin <longjin@DragonOS.org>

* feat(net/tcp): 实现TCP keepalive和linger选项支持

- 新增TCP_KEEPIDLE、TCP_KEEPINTVL、TCP_KEEPCNT选项的读写支持
- 实现SO_LINGER选项设置,支持立即中止连接
- 修改连接关闭逻辑,当linger_abort为true时立即中止连接
- 添加相关选项的默认值和验证逻辑

Signed-off-by: longjin <longjin@DragonOS.org>

---------

Signed-off-by: longjin <longjin@DragonOS.org>
2026-01-21 13:20:30 +08:00
..
.cargo
crates ci: 添加rust-slabmalloc的主机测试工作流和属性测试 (#1577) 2025-12-30 08:37:47 +08:00
src fix(net/tcp): 修复TCP套接字关闭和接收逻辑 (#1690) 2026-01-21 13:20:30 +08:00
submodules
.clippy.toml fix: 检查栈帧大小 (#1126) 2025-05-26 17:33:25 +08:00
.gitignore fix:Fix related issues with kexec (pr # 1303) code (#1339) 2025-11-10 13:31:10 +08:00
Cargo.lock feat(net): 新增TCP_INFO支持并优化网络接口选择逻辑 (#1623) 2026-01-09 10:44:21 +08:00
Cargo.toml feat(net): 新增TCP_INFO支持并优化网络接口选择逻辑 (#1623) 2026-01-09 10:44:21 +08:00
Makefile feat(build): replace rootfs and user space app creation with nix base scripts (#1505) 2025-12-26 18:36:13 +08:00
build.rs fix:Fix related issues with kexec (pr # 1303) code (#1339) 2025-11-10 13:31:10 +08:00
env.mk feat(build): replace rootfs and user space app creation with nix base scripts (#1505) 2025-12-26 18:36:13 +08:00
rust-toolchain.toml chore: Upgrade kernel toolchain to 250810 (#1257) 2025-08-18 13:25:19 +08:00