fix: In high concurrency (200+), V-Hono experiences an error where the connection is reset problem

This commit is contained in:
meiseayoung
2025-12-30 19:23:09 +08:00
parent 8e1007a1b4
commit d0298ea577
4 changed files with 103 additions and 5 deletions
+3 -3
View File
@@ -11,12 +11,12 @@ pub:
port int = 8080
host string
family net.AddrFamily = .ip6
timeout_secs int = 8
timeout_secs int = 120 // 高并发场景需要更长超时(原 8 秒太短)
max_headers int = 100
max_read int = 8192
max_write int = 65536
keepalive_timeout int = 5
max_keepalive_req int = 1000
keepalive_timeout int = 30 // Keep-Alive 超时延长到 30 秒
max_keepalive_req int = 10000 // 单连接最大请求数提升到 10000
}
// picoev 请求上下文