From 3762343889dc4c12b40dd86695b3fd69b13c75da Mon Sep 17 00:00:00 2001 From: xfy911 Date: Sun, 7 Jun 2026 06:07:22 +0800 Subject: [PATCH] =?UTF-8?q?docs(plan):=20=E6=9B=B4=E6=96=B0=E8=A7=84?= =?UTF-8?q?=E5=88=92=E6=96=87=E4=BB=B6=20=E2=80=94=20=E6=A0=87=E8=AE=B0?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E8=AD=A6=E5=91=8A=E4=BF=AE=E5=A4=8D=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cocoon-plan.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.cocoon-plan.md b/.cocoon-plan.md index e4bdbbc..07d872c 100644 --- a/.cocoon-plan.md +++ b/.cocoon-plan.md @@ -74,13 +74,20 @@ 1. **[低] Doxygen 中文注释** — 各模块函数级注释待完善 2. **[低] 性能优化** — 连接池复用、零拷贝优化、压缩预缓存 3. **[低] 配置文件 JSON Schema 验证** — 配置文件格式校验 -4. **[x] 插件热重载** — 运行时 SIGUSR1 触发重新加载插件 ✅ 2026-06-06 -5. **[x] CI 自动化** — GitHub Actions 编译 + 测试 ✅ 2026-06-06 -6. **[x] Makefile 测试目标完善** — integration-test 别名 + test-all ✅ 2026-06-06 -7. **[x] README 同步更新** — 补充所有新功能与 CI badge ✅ 2026-06-06 +4. **[x] 编译警告修复** — stringop-truncation 警告已消除 ✅ 2026-06-07 +5. **[x] 插件热重载** — 运行时 SIGUSR1 触发重新加载插件 ✅ 2026-06-06 +6. **[x] CI 自动化** — GitHub Actions 编译 + 测试 ✅ 2026-06-06 +7. **[x] Makefile 测试目标完善** — integration-test 别名 + test-all ✅ 2026-06-06 +8. **[x] README 同步更新** — 补充所有新功能与 CI badge ✅ 2026-06-06 ## 最近行动记录 +- 2026-06-07: **本轮行动 — 修复编译警告与测试清理** + - `config.c`: 将 `strncpy` 替换为 `memcpy` + 显式 null 结尾,消除 `-Wstringop-truncation` 警告 + - `proxy.c`: 同上,修复 `proxy_add_rule` 中的 `strncpy` 警告 + - `tests/integration_test.sh`: 修复 `kill_server` 函数,补充 `pgrep -f "cocoon.*-c "` 以清理通过 `-c` 配置文件启动的测试服务器进程,解决端口占用导致测试失败的问题 + - 编译零警告,142 个单元测试 + 80 项集成测试全部通过 + - 推送到 main(1b930aa) - 2026-06-07: **本轮行动 — 反向代理支持(MVP)** - `proxy.h` / `proxy.c`:新增反向代理模块 - `cocoon_proxy_rule_t` / `cocoon_proxy_config_t`:路径前缀匹配规则(最多 8 条)