mirror of
https://github.com/iflytek/skillhub.git
synced 2026-08-28 11:25:00 +00:00
* fix(scanner): wire timeout config and create dedicated scanner HttpClient - Create scanner-specific HttpClient bean with proper timeout configuration - Wire SkillScannerProperties.connectTimeoutMs (5s) and readTimeoutMs (5min) into WebClient - Add logging for timeout configuration verification - Fix cloud environment 5-second timeout issue by ensuring responseTimeout is properly applied The previous global WebClient.Builder configuration was not being used correctly, causing scanner requests to timeout after 5 seconds in cloud environment. This fix creates a dedicated HttpClient for scanner with explicit timeout settings. * refactor(webclient): use WebClientCustomizer and add scanner connection pool - Replace singleton WebClient.Builder bean with WebClientCustomizer (follows Spring Boot best practice for prototype-scoped builder) - Add connection pool config to scanner HttpClient (maxConn=10, maxIdleTime=20s, evictInBackground=30s) to prevent stale connections - Add connectTimeout to global WebClient config * fix(skill): use system default timezone for auto-generated version numbers - Change AUTO_VERSION_FORMATTER from UTC to ZoneId.systemDefault() - Version format yyyyMMdd.HHmmss now uses server's local timezone - Update test to validate format instead of exact value (timezone-independent) This allows the service to adapt to deployment location: - Deployed in China → uses Asia/Shanghai timezone - Deployed in US → uses US timezone - Follows server's system timezone configuration |
||
|---|---|---|
| .. | ||
| src | ||
| pom.xml | ||