Skip to content

Feat/shutdown#216

Merged
Userunknown84 merged 3 commits into
Userunknown84:mainfrom
Aharshi3614:feat/shutdown
Jun 23, 2026
Merged

Feat/shutdown#216
Userunknown84 merged 3 commits into
Userunknown84:mainfrom
Aharshi3614:feat/shutdown

Conversation

@Aharshi3614

@Aharshi3614 Aharshi3614 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Closes #206

Added graceful shutdown to prevent connection loss when server stops.

Changes:

  • Server waits for in-flight requests to complete before shutting down
  • MongoDB connection properly closed on exit
  • Clean exit with code 0

Before:

Ctrl+C → Server: Immediate shutdown → Users get errors

After:

Ctrl+C → Server: Waits for requests to finish → Clean exit

@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

@Aharshi3614 is attempting to deploy a commit to the Aditya Sharma's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Userunknown84 Userunknown84 merged commit 07430b1 into Userunknown84:main Jun 23, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add graceful shutdown

2 participants