Skip to content

Hotfix/server unexpected freeze - #245

Merged
loclt1011 merged 10 commits into
mainfrom
hotfix/server-unexpected-freeze
Aug 21, 2026
Merged

Hotfix/server unexpected freeze#245
loclt1011 merged 10 commits into
mainfrom
hotfix/server-unexpected-freeze

Conversation

@loclt1011

Copy link
Copy Markdown
Collaborator
  • Share one uvicorn log handler and send stderr to a file, not a multilog pipe — the two mechanisms that froze the event loop
  • Reopen the log stream after a failed write, so a storage fault degrades logging instead of silencing it until restart
  • Return 504 for a timed-out backend and 502 for an unreachable one, inside a ladder that shrinks inward, with one request id carried end to end
  • Verify the stop released the port, refuse a second instance over a running one's logs, and SIGKILL a server that stays bound but stops answering /livez
  • Reuse one pooled httpx client instead of building one per request, which stranded 433 CLOSE-WAIT sockets

@loclt1011
loclt1011 merged commit a85176b into main Aug 21, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants