1. The problem
In one sentence
The client sends a request and does not get a complete answer within its timeout: the server hangs, takes too long to send headers, or sends the body so slowly that the time runs out.
A story
A client calls an operation. In the first case the server accepts the connection and then says nothing at all. In the second it waits four seconds before it sends a single header. In the third, the headers arrive at once, and then the body trickles in at 50 bytes every 200 milliseconds. The client has a 3-second timeout. It gives up in all three cases, and the log says only “timeout”.
Why it hurts
A call that never ends holds a thread, a connection and a user. Without a timeout it would hold them for ever. With a timeout, it fails, and the client has to guess why.
- For developers: the three cases need different fixes (a stuck handler, slow startup of the response, a slow producer), but the client sees the same thing: no answer.
- For managers: a service that hangs is worse than one that fails fast: it ties up the callers, and they fail too. One hanging dependency can take down everything that calls it.
- For DevOps: set timeouts at every layer (client, gateway, service), shorter on the outside than on the inside, and watch the count of timeouts, not only errors.
Example
Three sandbox operations, all GET:
/timeout/hang the server never answers (bounded at 30 s, then gives up)
/timeout/slow-headers the first header comes after 4 s
/timeout/slow-body headers at once, then 50 bytes at a time, 10 s in all
A fourth, /slow, answers after 15 seconds.
How to detect it without clrsig
curl --max-time 3 URLends withcurl: (28) Operation timed out. Add-vto see whether the headers arrived.- In traces, look for requests that never completed, and for the stage where they stopped.
How to fix it
There are two usual causes:
- The server is wrong (more likely). A handler waits on something that never returns (a lock, a remote call without its own timeout). Give every wait a bound, and answer with an error when it is exceeded.
- The timeout is wrong. The operation is legitimately slow. Then change its design (asynchronous, see AC-046) or give it a longer, deliberate timeout.
To tell which: look at what the handler is waiting for. Never solve it by removing the client timeout.
Related problems
AC-048 The server is slow, AC-017 The body is cut off, or the connection drops, AC-052 The server is down for a while and then recovers.
Words used on this page are explained once in the glossary.
2. How clrsig helps
Check
CS-RUN-003 No response. State: caught. Severity today: failure (exit code 1). When no complete answer arrives within the request timeout, the operation fails as “the server did not answer”. The default timeout is 10 seconds; --request-timeout <ms> sets another.
Command
--paths limits the run to these three GET operations, so nothing is written. The timeout is 3 seconds (3000 ms), and the run takes about 9 seconds because each operation waits for it:
clrsig conform specs/conform-fail.yaml \
-b http://localhost:8080/conform-fail \
--env clrsig/environments/conform-fail.yaml \
--paths /timeout/hang,/timeout/slow-headers,/timeout/slow-body \
--request-timeout 3000 --explain
Exit code: 0 clean, 1 a finding, 2 the spec or the setup is broken. Here it is 1.
What you see
Output from clrsig v0.21.0, recorded on 2026-11-30. The lines for the 73 operations that --paths skipped are left out by grep -v '^ SKIP'; no line is edited.
conform-fail API 1.0.0
Base URL: http://localhost:8080/conform-fail
Limited by --paths /timeout/hang,/timeout/slow-headers,/timeout/slow-body
FAIL GET /timeout/hang
error: executing request: Get "http://localhost:8080/conform-fail/timeout/hang": context deadline exceeded
→ [CS-RUN-003] The server did not answer. Why: No complete answer arrived within the request timeout, so there was nothing to compare with the spec. The server may still have received the request and acted on it: after a request that changes data, check before running it again. Where: network. Fix: Find out why the server is slow or hangs on this operation; raise --request-timeout only if a slow answer is expected.
FAIL GET /timeout/slow-body
error: reading response body: context deadline exceeded
→ [CS-RUN-003] The server did not answer. Why: No complete answer arrived within the request timeout, so there was nothing to compare with the spec. The server may still have received the request and acted on it: after a request that changes data, check before running it again. Where: network. Fix: Find out why the server is slow or hangs on this operation; raise --request-timeout only if a slow answer is expected.
FAIL GET /timeout/slow-headers
error: executing request: Get "http://localhost:8080/conform-fail/timeout/slow-headers": context deadline exceeded
→ [CS-RUN-003] The server did not answer. Why: No complete answer arrived within the request timeout, so there was nothing to compare with the spec. The server may still have received the request and acted on it: after a request that changes data, check before running it again. Where: network. Fix: Find out why the server is slow or hangs on this operation; raise --request-timeout only if a slow answer is expected.
No operation got an answer from http://localhost:8080/conform-fail (the error under each operation says why).
FAILED 76 operations · 0 passed · 3 failed · 73 skipped 9004ms
How to read it: all three fail as “no response”, and each has its own error: line: context deadline exceeded while sending the request (the hang and the slow headers) or while reading the body (the slow body). The Why line says that no complete answer arrived within the request timeout, and warns that the server may still have received the request and acted on it. The run took 9004 ms: three timeouts of 3000 ms.
For /slow with --request-timeout 1500, the first error is context deadline exceeded as well, after 1500 ms.
Where to look
- Desktop app: Check Conformance lists these operations as failed with the same explanation.
- Reports: with
--format json, each finding has"checkId": "CS-RUN-003". - In a scenario: a step can set its own timeout with
timeoutMs. - GitHub Action: the
request-timeoutinput.
How clrsig helps you fix it
It tells you that no answer arrived within the time, and where (the network layer). It cannot tell the three cases apart in its explanation.
Limits
- The explanation says no complete answer arrived in time, which fits all three, but it cannot tell a hang from slow headers or a slow body. The
error:line shows whether it happened while sending the request or while reading the body; usecurl -vto see which stage stopped.
More ways
Nothing yet.
3. Video brief for Google NotebookLM
VIDEO BRIEF — AC-049 · The server never answers, or answers too slowly in the body
Length: 5 to 7 minutes. Language: English. Audience: developers, with a line each for managers and DevOps.
One idea: a call that never ends holds a thread, a connection and a user; a timeout turns it into a failure, and you must find out why.
Open with this story: A client calls an operation. In the first case the server accepts the connection and says nothing at all. In the second it waits four seconds before it sends a single header. In the third the headers arrive at once and then the body trickles in at 50 bytes at a time. The client has a three-second timeout and gives up in all three cases. The log says only timeout.
Say these facts, in this order:
1. Three sandbox operations: one never answers, one is slow to send headers, one is slow to send the body.
2. With a request timeout of 3000 milliseconds, all three fail with the check ID CS-RUN-003, and the run takes about nine seconds.
3. The three cases get the same explanation, and each has its own error line: context deadline exceeded while sending the request, or while reading the body.
4. The Why line says that no complete answer arrived within the request timeout, which fits all three, and that the server may still have received the request and acted on it, so after a request that changes data, check before running it again. Use curl with the verbose option to see the stage.
5. Two usual causes: the server is wrong (a handler waits on something with no bound; give every wait a bound), or the timeout is wrong because the operation is legitimately slow.
6. For managers: a service that hangs is worse than one that fails fast, because it ties up the callers.
7. For DevOps: set timeouts at every layer, shorter on the outside than on the inside, and watch the count of timeouts.
Show on screen: the three fixture lines, the command (clrsig conform specs/conform-fail.yaml -b http://localhost:8080/conform-fail --env clrsig/environments/conform-fail.yaml --paths /timeout/hang,/timeout/slow-headers,/timeout/slow-body --request-timeout 3000 --explain), and the output block, copied exactly from the card.
Name the check: CS-RUN-003, No response. Say the clrsig version: v0.21.0.
Explain these words once: timeout (the time a client waits before it gives up); header (a named value sent before the body); connection (the channel between a client and a server); exit code (0 clean, 1 a finding, 2 setup or spec broken).
Say what clrsig does not see here: it cannot tell the three cases apart in its explanation.
Safety line (if a write is shown): not needed, this command sends GET requests only.
Finish with three recap questions:
1. What is the default request timeout? (10 seconds.)
2. Where is the real reason in the output? (In the error line under each operation.)
3. Why is a hanging service worse than one that fails fast? (It ties up the callers, which then fail too.)
Tease the next video: AC-050 · The server fails every few calls.
Do not: say "contract testing" alone; say clrsig "catches everything"; invent flags, IDs or numbers; read tables aloud; use any fact that is not in the card.