Silent Timeout and Incomplete Response Failures
Requests time out without clear signaling, leaving clients unable to distinguish a failed request from an operation whose outcome is unknown.
Failure explanation
A request exceeds a client, gateway, or server timeout, or the connection closes before the response is complete. The consumer may wait indefinitely, parse a truncated body, or assume that a timed-out write did not happen even though the server committed it. This last case is dangerous: retrying can create a duplicate operation. Timeout behavior must be considered at each network hop, and a timeout does not always prove that the server did not perform the operation.
Example
A client submits an order. The server commits the order but takes too long to return the response. The client times out and submits the same POST again. Two orders are created because the operation has no idempotency protection.
How to test
- Inject delays before processing, during processing, and after commit but before response.
- Interrupt connections and return truncated response bodies.
- Exercise client and gateway timeout boundaries.
- Observe whether retries are safe and whether the outcome can be queried.
Expected behavior
The client receives a bounded, diagnosable timeout outcome. The API’s documented retry and idempotency behavior prevents duplicate effects, and incomplete responses are never treated as valid success.
Runnable examples
Each example includes a broken server, a fixed server, an OpenAPI spec, and a clrsig scenario that detects the failure.
In the field
- STORY-002 primary The Silent Timeout Problem
- STORY-018 related The Idempotency Key That Arrived Too Late
- STORY-028 related The Operation That Finished After the Client Gave Up
- STORY-041 related The Healthy Order API That Failed When Recommendations Went Offline
- STORY-047 related The Download That Looked Complete but Ended Halfway Through