Skip to content

fix: increase server timeout from 5s to 30s#184

Merged
jakebromberg merged 2 commits intomainfrom
fix/23-server-timeout
Feb 27, 2026
Merged

fix: increase server timeout from 5s to 30s#184
jakebromberg merged 2 commits intomainfrom
fix/23-server-timeout

Conversation

@jakebromberg
Copy link
Member

@jakebromberg jakebromberg commented Feb 21, 2026

Summary

  • The global server.setTimeout(5000) in apps/backend/app.ts set a 5-second timeout on all HTTP sockets, which was too aggressive for endpoints making multiple DB queries or external API calls.
  • Increased the timeout to 30 seconds (server.setTimeout(30000)).
  • Added a unit test that reads app.ts and asserts the timeout value is at least 30,000ms.

Test plan

  • Unit test tests/unit/config/server-timeout.test.ts fails with the old 5s value
  • Unit test passes with the new 30s value
  • Verify no regressions on endpoints with long-running queries

Closes #23

Made with Cursor

Jake Bromberg and others added 2 commits February 27, 2026 10:11
The 5-second timeout was too aggressive for endpoints that make
multiple database queries or external API calls.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use narrowing guard instead of non-null assertion to satisfy
@typescript-eslint/no-unnecessary-type-assertion.
@jakebromberg jakebromberg merged commit dced04c into main Feb 27, 2026
4 checks passed
@jakebromberg jakebromberg deleted the fix/23-server-timeout branch February 27, 2026 18:27
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.

add dj_id to flowsheet endpoint

1 participant