## 主要改进 - 新增动态超时机制:支持timeout_seconds参数(10-300秒) - 增强异常处理:细分OTK异常类型,提供具体错误信息 - 保持向后兼容:新参数可选,不影响现有API ## 技术细节 - ShrinkwrapManager.h: 添加timeout_seconds字段 - ShellExportHandler.cpp: 实现超时参数解析和验证 - MFCCreoDll.cpp: HTTP层支持动态超时控制 - ShrinkwrapManager.cpp: 细分pfcXToolkitError等异常类型 ## 解决问题 - 复杂模型处理超时导致的504错误 - 异常信息不明确难以定位问题 - 固定30秒超时限制了大模型处理能力 ## 文档和测试 - SHRINKWRAP_OPTIMIZATION.md: 完整使用说明 - test_timeout.py/bat: 自动化和手动测试工具 - 更新CLAUDE.md项目文档 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
35 lines
1.1 KiB
Batchfile
35 lines
1.1 KiB
Batchfile
@echo off
|
|
echo Checking build status...
|
|
echo.
|
|
|
|
echo === Modified Files Summary ===
|
|
echo 1. ShrinkwrapManager.h - Added timeout_seconds field
|
|
echo 2. ShellExportHandler.cpp - Added timeout parameter parsing
|
|
echo 3. MFCCreoDll.cpp - Dynamic timeout support
|
|
echo 4. ShrinkwrapManager.cpp - Enhanced error handling
|
|
echo.
|
|
|
|
echo === Key Changes ===
|
|
echo - Dynamic timeout: 10-300 seconds range
|
|
echo - Better error messages for different OTK exceptions
|
|
echo - Backward compatible API
|
|
echo.
|
|
|
|
echo === Error Handling Types ===
|
|
echo - pfcXToolkitError: General Creo operation failures
|
|
echo - pfcXBadArgument: Invalid parameter values
|
|
echo - pfcXToolkitOutOfMemory: OTK memory issues
|
|
echo - std::bad_alloc: System memory issues
|
|
echo - Unknown errors: Catch-all handler
|
|
echo.
|
|
|
|
echo === Testing ===
|
|
echo Use the following files to test:
|
|
echo - test_timeout.py: Python automated testing
|
|
echo - test_timeout.bat: Manual curl testing
|
|
echo - SHRINKWRAP_OPTIMIZATION.md: Complete documentation
|
|
echo.
|
|
|
|
echo Build should now compile without errors.
|
|
echo Next: Compile the project and test with Creo.
|
|
pause |