Connection timeout — distinguish connection and response deadlines
A connection timeout means the connection did not complete within the relevant deadline; a response timeout happens after connection and is a different failure stage. ETIMEDOUT may come from the kernel, while a library may impose its own deadline. Check address selection, route and return path, filtering, packet loss, listener backlog and service saturation. Compare client and server observations for the same authorized endpoint and time window; do not infer that a timeout proves a firewall drop. Correct the verified path or service bottleneck, using scoped policy changes with rollback and console access. Increase deadlines only when supported by latency requirements, not to conceal outages. Verify bounded end-to-end success and measured latency; restore previous route, policy or application settings if degraded. Prevent with stage-specific telemetry and time budgets. The fixture uses a private connected socketpair with a 50-ms receive deadline and no data, then sends one byte and verifies recovery. It is a real application receive timeout, NOT a TCP connection timeout or kernel ETIMEDOUT reproduction. Example prerequisites: Linux, Bash, Python 3. Run as a non-root user in a private temporary working directory. Example scope: native adjacent error (receive timeout). Expected output: receive deadline expired; subsequent byte received. No system configuration changes.
Formal Syntax & Structure
ip route get ADDRESS; ss -tn; bounded authorized client checkParameters & Attributes
| Name | Type | Description |
|---|---|---|
| connect deadline | diagnostic evidence | Time allowed to establish connection. |
| response deadline | diagnostic evidence | Time allowed for application data. |
| ip route get | diagnostic evidence | Local routing decision for an approved address. |
Return Value
Expected normalized laboratory result: receive deadline expired; subsequent byte received. A passing fixture does not prove that a live incident has the same cause.
Working Example
python3 - <<'PY'import socketleft,right=socket.socketpair()with left,right: left.settimeout(0.05) try: left.recv(1) except TimeoutError: pass else: raise AssertionError('receive timeout expected') right.sendall(b'x'); assert left.recv(1)==b'x'print('receive deadline expired; subsequent byte received')PY