优化项目机构和服务端协程控制逻辑

This commit is contained in:
2025-02-25 14:48:50 +08:00
parent 83fd749d50
commit 7f23e2741f
21 changed files with 732 additions and 440 deletions

View File

@@ -1,16 +1,24 @@
## todo
监听进程信号,优雅关闭服务
加一个 log 包,实现全局日志格式控制
读取 conn 时加上超时机制
检查 ip 时需要判断同一 ip 的不同写法
客户端重连后出现连接卡死的情况
实现一个 socks context 以在子组件中获取 socks 相关信息
fwd 使用自定义 context 实现在一个上下文中控制 cancelerrch 和其他自定义数据
### 长期
考虑一下连接安全性
内部接口 http2 或者 protobuf
内部接口 rtt 是否还有优化空间当前30-300ms根据内容大小增长
## 开发相关
@@ -29,6 +37,6 @@
### 更新测试环境
1. 构建项目
2. 使用测试配置远程启动 docker
2. 使用测试配置 `.env.test` 远程启动 docker
## 转发服务