fix: harden native http protocol boundaries

This commit is contained in:
2026-09-21 02:54:42 +08:00
parent 3d5f225fb2
commit 22939fdb0b
4 changed files with 240 additions and 18 deletions

View File

@@ -4,6 +4,7 @@
- 统一标准库与 native 的真实 TCP benchmark,增加固定并发档位、响应状态与读写错误检查。
- 新增独立进程并发与长连接内存测量工具,记录成功吞吐、P95/P99、服务端分配、空闲连接堆内存和回收情况;修正并行 `ns/op` 与客户端/服务端混合分配的解释。
- 加固 native HTTP/1.1 解析边界:校验 Host、重复 Content-Length、Connection token、Transfer-Encoding、控制字符和响应头名称;补充 HTTP/1.0 Keep-Alive、HEAD、204 以及异常请求测试。
## v0.5.0