Summary
In addition to the ping timeout disconnects (same as staging, #5603), the pre-prod build shows two new socket failure modes: server-initiated connection close and TCP connection reset by peer (os error 54). These indicate the backend is actively terminating connections rather than just going silent.
Log evidence (pre-prod, 2026-08-20)
17:57:59 WRN [socket] Connection lost: Server closed connection
21:40:58 WRN [socket] Connection failed (attempt 1/5): WebSocket connect:
IO error: Connection reset by peer (os error 54)
22:13:33 WRN [backend_api] transient transport failure on GET /orchestration/v1/sessions:
error sending request for url (https://api.tinyhumans.ai/...) → client error (Connection reset by peer)
Distinction from #5603
Impact
When the server resets the connection, both the WebSocket channel and REST API calls fail simultaneously. Any in-flight agent turn is dropped with no recovery path until reconnect completes.
Fix direction
- Investigate the pre-prod backend for conditions that trigger active connection termination (memory pressure, request queue overflow, deploy/restart events).
- The simultaneous WebSocket + REST reset at 22:13 suggests a backend process restart rather than a network event.
Summary
In addition to the ping timeout disconnects (same as staging, #5603), the pre-prod build shows two new socket failure modes: server-initiated connection close and TCP connection reset by peer (os error 54). These indicate the backend is actively terminating connections rather than just going silent.
Log evidence (pre-prod, 2026-08-20)
Distinction from #5603
Impact
When the server resets the connection, both the WebSocket channel and REST API calls fail simultaneously. Any in-flight agent turn is dropped with no recovery path until reconnect completes.
Fix direction