Skip to main content

Timeouts

This section uses an On/Off switch in the top corner instead of the Create/Delete/Save buttons. Off = delete the domain's custom timeout values → the domain returns to the global default timeouts.

Timeouts sets the wait times for a domain: read/write on the client side and connect/read on the server (origin) side. The goal: avoid hanging connections when the origin responds slowly, and limit clients that send/receive data too slowly. Each field left empty = null = inherits the global value.

Use this when: your origin sometimes responds slowly and you want to tighten or relax the wait times, or you want to close client connections that trickle data early. Example: an internal API needs up to 90 seconds to respond — raise Server Read so the response is not cut off midway.

Before you start​

  • The domain has been added and points to VNIS.
  • An empty field = inherit global (not 0).

How to configure​

This section uses an On/Off switch in the top corner: On = create and apply custom timeouts for the domain (saved immediately, no separate Save needed); Off = delete them → back to the global default timeouts. When Off, the fields are still shown (as a draft) so you can fill them in first.

  1. Go to Domains → select the domain → Timeouts tab. Go to Domains → select the domain → Timeouts tab
  2. Enter the values (seconds). Any field left empty inherits the global value (the placeholder reads "inherit").
  3. Turn on the On switch in the top corner of the section. For later changes, click Save (shown only when On and there are unsaved changes).

Configuration fields​

FieldMeaningValuesDefaultNotes
Client ReadWait time for reading data from the client1–3600 secondsEmpty = inherit (global 60)Protects against clients that trickle data (slow-read)
Client WriteWait time for writing data to the client1–3600 secondsEmpty = inherit (global 60)—
Server ConnectWait time for the TCP connection to the origin1–3600 secondsEmpty = inherit (global 10)The form may prefill 5, but an empty field inherits the global value of 10 (not 5)
Server ReadWait time for reading from the origin1–3600 secondsEmpty = inherit (global 30)Also used as the write timeout to the origin (there is no separate Server Write field)
Keepalive(intended) client connection keepalive0–3600 secondsEmptyNot supported at the domain level — the platform default (60) applies. Above 3600 → 400
WebSocket IdleMaximum idle time for WebSocket connections0–86400 seconds (0/empty = inherit)Empty = inherit (global 3600)Applies the read/write timeout to WebSocket connections (both client and origin side). Above 86400 → 400

Keepalive is not supported per domain: the platform default (60) always applies. WebSocket Idle does take effect per domain (empty/0 = inherit global 3600). Bounds: Keepalive at most 3600, WebSocket Idle at most 86400 seconds; exceeding them returns 400.

There is no separate Server Write: the write timeout to the origin reuses the Server Read value. Changing Server Read changes both read and write on the origin side.

Configuration examples​

Example 1 — Slow origin (heavy reports): relax Server Read.

  • Server Read: 90 · leave the other fields empty (inherit).
  • Expected result: the edge waits up to 90 seconds for the origin, for both read and write, before treating it as a timeout.
  • How to check: call an endpoint that takes about 80s → you still get a response (not cut off); if the origin hangs for more than 90s → edge timeout.

Example 2 — Tighten limits on clients that send the body (upload) too slowly.

  • Client Read: 5.
  • Result: after the headers have been read, if the client trickles the body with more than 5 seconds between reads, the connection is closed.
  • Note: Client Read applies to the request body, after the request headers have been received.
  • How to check: simulate a slow POST body (for example slowhttptest in body mode) → the connection is closed according to the read timeout.

Example 3 — Distant origin with a slow TCP handshake: relax Server Connect.

  • Server Connect: 8 · Server Read: 30.
  • Result: the edge waits up to 8 seconds to open the connection to the origin before treating it as a connect error.
  • How to check: point to an origin with a slow TCP response → the connection is not cut off early at the inherited default level (global 10s; the form may show 5, but an empty field inherits 10).

Order of evaluation​

  • The On/Off switch = whether the configuration exists: On = creates the timeout record for the domain; Off = deletes the record → every field returns to the global default. (This is different from "empty field = inherit" while the switch is On.)
  • Empty field = inherit global. Per-domain values override the global values only when the value is > 0.
  • Server Read controls both read and write on the origin side (there is no independent Server Write).
  • Per-domain Keepalive is not supported: the platform default always applies. WebSocket Idle does take effect per domain (empty field = inherit global 3600).

Troubleshooting​

SymptomCauseFix
Save returns 400 "must be between 1 and 3600"One of Client Read/Write, Server Connect/Read is set to 0 or > 3600Set a value in the range 1–3600, or leave it empty to inherit
Keepalive is set but the client keepalive does not changeKeepalive is not supported per domainExpected — the platform default applies; contact VNETWORK support if you need a different value
WebSocket connections close earlier/later than expectedWebSocket Idle is set too low/highAdjust WebSocket Idle (empty field = inherit 3600)
Changing Server Read also changes the write timeout on the origin sideThe origin write timeout reuses Server ReadThis is the correct behavior — there is no separate field
A field set to 0 was assumed to mean "no timeout"0 is not valid for the 4 main fields (blocked with 400); only an empty field means inheritUse an empty field to inherit global

FAQ​

  • Does an empty field mean the timeout is disabled? No — an empty field = inherit the global value, not disabled.
  • Why is there no Server Write? The edge uses Server Read as both the read and write timeout to the origin.
  • Does per-domain Keepalive have any effect? No — Keepalive is not supported at the domain level (the platform default is used). WebSocket Idle, however, does take effect per domain (empty field = inherit 3600).
  • What is the maximum value for the main timeouts? 3600 seconds (1 hour) for Client Read/Write and Server Connect/Read.