The content of this page has been automatically translated by AI. If you encounter any problems while reading, you can view the corresponding content in Chinese.

Origin-pull Timeout

Last updated: 2024-12-31 17:39:25

Configuration Scenario

The origin timeout includes TCP connection time configuration and origin load time configuration:
TCP connection time: refers to the TCP connection timeout period, which defaults to 5 seconds and can be set up to 60 seconds;
Origin load time: refers to the data load timeout period after a successful TCP connection, which defaults to 10 seconds and can be set up to 300 seconds.
With a short origin timeout, origin failure situations may occur due to network issues. If the origin timeout is set too long, failed requests may occupy connections for a long time due to the website's data processing limitations, causing normal requests to become inaccessible. It is recommended to adjust the origin TCP connection timeout and origin data load timeout according to your origin server data processing conditions and network environment to ensure normal origin.

Configuration Guide

Viewing Configuration

Log in to the CDN console, select Domain Name Management from the menu bar, click Management on the right side of the domain name to enter the domain configuration page, and you can see the origin timeout configuration in Origin-pull Configuration. By default:
The TCP connection timeout period is 5 seconds.
The origin-pull loading timeout period is 10 seconds.




Modify

By clicking Edit on the right, you can modify the corresponding timeout as needed:
The TCP connection timeout period can be set to 5–60 seconds.


The origin-pull loading timeout period can be set to 5–300 seconds.


Note
If your acceleration domain name is configured for global acceleration, the configured origin-pull timeout period will take effect globally. This configuration does not distinguish between requests from Mainland China and from outside Mainland China.