feat: make native TLS protocol boundary explicit

This commit is contained in:
2026-09-22 18:39:57 +08:00
parent 4a8feaca36
commit a523e6ba3f
6 changed files with 93 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
## Unreleased
- native TLS 明确限制 ALPN 为 `http/1.1`:缺省自动宣告该协议,误配置 `h2` 等未实现协议时在启动阶段报错。
- native `Server.Stats()` 新增连接和请求过载拒绝计数;新增可信代理配置,访问日志只在 socket 对端属于配置网段时解析 `X-Forwarded-For`。
- 新增 transport-neutral `metrics` 包,支持请求数、错误数、in-flight、累计耗时和状态分布,并可直接注册 `/metrics` 接口。
- native 新增 `Server.Stats()`,提供 accepted connections、active connections 和 active requests 生命周期指标。