feat: 优化流式性能

This commit is contained in:
tbphp
2025-06-07 11:34:05 +08:00
parent 8a4cb65bad
commit c94ed14357
3 changed files with 185 additions and 72 deletions

View File

@@ -53,6 +53,15 @@ DISABLE_COMPRESSION=true
# 缓冲区大小字节建议流式响应使用64KB或更大
BUFFER_SIZE=65536
# 流式传输缓冲区大小字节默认64KB
STREAM_BUFFER_SIZE=65536
# 流式传输flush间隔毫秒默认100ms
STREAM_FLUSH_INTERVAL=100
# 流式请求响应头超时毫秒默认10秒
STREAM_HEADER_TIMEOUT=10000
# ===========================================
# 日志配置
# ===========================================