Skip to content

Commit 69d3592

Browse files
Johnserf-Seedclaude
andcommitted
fix: 修复页面关闭错误并添加并发解密支持
问题修复: - 添加请求锁机制防止并发访问同一页面导致的竞态条件 - 添加页面健康检查函数,在请求前验证页面有效性 - 添加自动恢复机制,页面失效时自动重置浏览器 - 为 page.evaluate 添加超时保护,根据文件大小动态计算超时时间 新功能: - 实现 PagePool 页面池管理器,支持并发处理多个解密请求 - 新增 POST /api/decrypt-concurrent 并发解密接口 - 新增 GET /api/pool-status 页面池状态查询接口 - 支持通过 POOL_SIZE 环境变量配置页面池大小(默认3) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8d74439 commit 69d3592

2 files changed

Lines changed: 530 additions & 85 deletions

File tree

api-service/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ services:
1616
environment:
1717
- NODE_ENV=production
1818
- PORT=3000
19+
- POOL_SIZE=3
1920

2021
restart: unless-stopped
2122

0 commit comments

Comments
 (0)