---
title: "Timeouts when accessing a content origin"
sidebar_label: "Timeouts when accessing a content origin"
description: "Timeouts when accessing a content origin, how to change timeout values"
sidebar_position: 2
---

import Formbricks from '@theme/MDXComponents/Formbricks'

# 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](/cdn/source/add-content-origin.mdx) guide.

You can [change the timeouts](#change-timeouts).

## Change timeouts \{#change-timeouts}

1. In the [control panel](https://my.selectel.ru/cdn-v3), on the top menu, click **Products** and select **CDN**.

2. In the **CDN Resources** section, open the CDN resource page → the **Origin** tab.

3. In the **Timeouts** block, in the **Connection timeout** field, enter the time in seconds or leave the default value.

4. In the **Request timeout** field, enter the time in seconds or leave the default value.

5. In the **Response timeout** field, enter the time in seconds or leave the default value.

6. Click **Apply**. While settings are being applied, the CDN resource will be in `PROCESSING` status. At this time, applying other settings is unavailable. The settings will be applied when the CDN resource transitions to `ACTIVE` status.

<Formbricks />
