Timeouts when accessing a content origin
A timeout is the maximum time during which a CDN server must complete each stage of a request to the content source. These stages include: establishing a connection to the content source, sending a request to the content source, and receiving a response from the content source. The default timeout for each stage is 10 seconds.
If a CDN resource has one content origin, exceeding any of the timeouts will result in content not being delivered — the CDN server will return a 504 Gateway Timeout response code. When a new request is received from a user, the CDN server will again send a request to this content origin.
If a CDN resource has multiple content origins, the CDN server will contact the next origin based on its weight when a timeout is exceeded. Learn more about content origin types and the logic of distributing requests between them in the Additional Content Origins guide.
You can change the timeouts.
Change timeouts
-
In the control panel, on the top menu, click Products and select CDN.
-
In the CDN Resources section, open the CDN resource page → the Origin tab.
-
In the Timeouts block, in the Connection timeout field, enter the time in seconds or leave the default value.
-
In the Request timeout field, enter the time in seconds or leave the default value.
-
In the Response timeout field, enter the time in seconds or leave the default value.
-
Click Apply. While settings are being applied, the CDN resource will be in
PROCESSINGstatus. At this time, applying other settings is unavailable. The settings will be applied when the CDN resource transitions toACTIVEstatus.