An optimization method for request timeout, a terminal and a storage medium
By dynamically calculating timeout parameters and employing a two-layer timeout judgment mechanism, the resource waste and request failure issues caused by traditional static timeout configuration are resolved, achieving high efficiency and stability in API calls and improving the overall success rate.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- FUJIAN TQ ONLINE INTERACTIVE INC
- Filing Date
- 2026-01-21
- Publication Date
- 2026-06-09
AI Technical Summary
In existing technologies, traditional static timeout configurations cannot adapt to dynamic changes in request duration, making it difficult to balance resource utilization and request success rate. Especially in request scenarios with long-tail distribution characteristics, fixed timeout settings lead to resource waste or request failure.
By monitoring the distribution of request timeout data for the target interface, dynamically calculating the preset timeout time, maximum timeout time, and the number of times the maximum timeout time is supported, a two-layer timeout judgment mechanism is established to achieve fine-grained management of request timeouts.
It significantly improved the success rate of API calls, optimized the efficiency of system resource utilization, resolved the contradiction between resource utilization and request success rate under the long tail effect, and ensured the high efficiency and stability of the system.
Smart Images

Figure CN122179464A_ABST