Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement graceful server shutdown in server.js - Replaced the existing shutdown function with a more robust implementation. - The new shutdown function: 1. Waits for the server to close existing connections before exiting. 2. Implements a 10-second timeout to force shutdown if the server takes too long. 3. Uses `process.exitCode` to set the exit code instead of calling `process.exit()` directly. - This ensures a cleaner and more predictable shutdown process. ```
- Loading branch information