fix(libhttp): 服务器读超时防 Slowloris (P1-4)

- 新增 setHeaderTimeout()(default 10s) / setReadTimeout()(default 30s),对齐 WAF
- doSSLHandshake 设置头超时覆盖握手,doRead 拆分为 async_read_header (头超时) + async_read (体超时)
- doWsRead 每次读取设置空闲超时,自动清理长期空闲连接
- 更新审计文档 P1-4 状态、README v3.4.2
This commit is contained in:
qing committed 2026-08-04 17:39:27 +08:00
1 parent 507054c4b2
commit 37c6d401d6
6 files changed
+64 -4

No files matched your search

+1
View File
@@ -67,6 +67,7 @@ private:
void close();
void doSSLHandshake();
void doRead();
void doReadBody();
void handleRead(beast::error_code ec);
bool isWebSocketUpgrade(const http::request<http::string_body>& req);
void doWsUpgrade();