Skip to content

Pre-prod: WebSocket server-initiated close and TCP reset (os error 54) — different failure modes from ping timeout #5638

Description

@Al629176

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugpre prod buildBugs found during pre-production build testing

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions