> ## Documentation Index
> Fetch the complete documentation index at: https://gcore-doc-1894.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Customize connection and read timeouts

Custom connection and read timeouts control how long Gcore edge nodes wait when communicating with an origin server.

* A custom connection timeout sets the maximum duration allowed for establishing a connection.

* A custom read timeout sets the maximum duration for receiving a response from the origin server. This timeout applies between two successive read operations, not to the entire response transmission.

When designated timeouts are exceeded, users receive a "504 Gateway Timeout" error.

## Configure custom timeouts

Timeouts are configured per CDN resource and apply to all requests handled by that resource.

1\. In the [Gcore Customer Portal](https://portal.gcore.com), navigate to **CDN** > **CDN resources**.

<Frame>
  <img src="https://mintcdn.com/gcore-doc-1894/D4afn3gx_zp92kAa/images/docs/cdn/cdn-resource-options/general/customize-connection-and-read-timeouts/cdn-resources.png?fit=max&auto=format&n=D4afn3gx_zp92kAa&q=85&s=80518bedda6f75e0c8ffe9c0a3422a8b" alt="CDN resources list page" width="1400" height="900" data-path="images/docs/cdn/cdn-resource-options/general/customize-connection-and-read-timeouts/cdn-resources.png" />
</Frame>

2\. Click the CNAME of the required CDN resource to open **Resource settings**.

<Frame>
  <img src="https://mintcdn.com/gcore-doc-1894/D4afn3gx_zp92kAa/images/docs/cdn/cdn-resource-options/general/customize-connection-and-read-timeouts/resource-settings.png?fit=max&auto=format&n=D4afn3gx_zp92kAa&q=85&s=af089dda1c8a8878e73829717930005c" alt="Custom connection timeout and Custom read timeout options in the resource settings" width="1400" height="900" data-path="images/docs/cdn/cdn-resource-options/general/customize-connection-and-read-timeouts/resource-settings.png" />
</Frame>

3\. Click **Custom connection timeout** or **Custom read timeout**, depending on the timeout to configure.

4\. Enable the **Customize connection timeout** or **Customize read timeout** toggle.

5\. Enter the timeout value. The allowed range is `1–5 seconds` for connection timeout and `1–30 seconds` for read timeout. To configure both timeouts, repeat steps 3–4 for the other option before saving.

<Info>
  For Enterprise plans, the upper limits can be raised beyond 5 seconds (connection) and 30 seconds (read). Contact [Gcore Support](https://support.gcore.com/hc/en-us/requests/new) to request higher values.
</Info>

<Frame>
  <img src="https://mintcdn.com/gcore-doc-1894/D4afn3gx_zp92kAa/images/docs/cdn/cdn-resource-options/general/customize-connection-and-read-timeouts/enable-connection-read-timeouts.png?fit=max&auto=format&n=D4afn3gx_zp92kAa&q=85&s=d5d31466f5bce7b7ac82bb01e711b328" alt="Resource settings showing both custom timeout toggles enabled with values entered" width="1400" height="900" data-path="images/docs/cdn/cdn-resource-options/general/customize-connection-and-read-timeouts/enable-connection-read-timeouts.png" />
</Frame>

6\. Click **Save changes**.
