Compare commits

..

2 Commits

Author SHA1 Message Date
shi a3a97d8cd4 Merge remote-tracking branch 'origin/main' 2025-03-04 16:30:06 +08:00
shi 02380a21d9 feat(ff-game): 添加 Forest HTTP客户端配置
- 在 application-prod.yml 文件中增加了 Forest配置选项
- 配置内容包括后端HTTP框架、连接池设置、请求超时时间等
- 添加了日志相关的配置,以便更好地监控和调试HTTP请求
2025-03-04 16:30:01 +08:00
1 changed files with 18 additions and 0 deletions

View File

@ -95,3 +95,21 @@ spring:
wall:
config:
multi-statement-allow: true
forest:
backend: okhttp3 # 后端HTTP框架默认为 okhttp3
max-connections: 1000 # 连接池最大连接数(默认为 500
max-route-connections: 500 # 每个路由的最大连接数(默认为 500
max-request-queue-size: 100 # [自v1.5.22版本起可用] 最大请求等待队列大小
max-async-thread-size: 300 # [自v1.5.21版本起可用] 最大异步线程数
max-async-queue-size: 16 # [自v1.5.22版本起可用] 最大异步线程池队列大小
timeout: 3000 # [已不推荐使用] 请求超时时间,单位为毫秒(默认为 3000
connect-timeout: 3000 # 连接超时时间,单位为毫秒(默认为 timeout
read-timeout: 3000 # 数据读取超时时间,单位为毫秒(默认为 timeout
max-retry-count: 3 # 请求失败后重试次数(默认为 0 次不重试)
ssl-protocol: TLS # 单向验证的HTTPS的默认TLS协议默认为 TLS
log-enabled: true # 打开或关闭日志(默认为 true
log-request: true # 打开/关闭Forest请求日志默认为 true
log-response-status: true # 打开/关闭Forest响应状态日志默认为 true
log-response-content: false # 打开/关闭Forest响应内容日志默认为 false
async-mode: platform # [自v1.5.27版本起可用] 异步模式(默认为 platform