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 only one content origin, exceeding any of the timeouts means content will not be delivered — the CDN server will return response code 504 Gateway Timeout. Upon receiving a new request from a user, the CDN server will send a request to this content origin again.
If a CDN resource has multiple content origins, when a timeout is exceeded, the CDN server will turn to the next origin by weight. Learn more about content origin types and request distribution logic between them in the Additional content origins guide.
You can change the timeouts.
Change timeouts
-
In the Control panel, from the top menu, click Products and select CDN.
-
Under CDN resources, open the CDN resource page → Origin tab.
-
In the Timeouts section, in the Connection time field, enter the time in seconds or leave the default value.
-
In the Sending request field, enter the time in seconds or leave the default value.
-
In the Receiving response field, enter the time in seconds or leave the default value.
-
Click Apply. While the settings are being applied, the CDN resource will have the
PROCESSINGstatus. Applying other settings is not available at this time. The settings will be applied once the CDN resource changes to theACTIVEstatus.