Closed ankraus closed 6 days ago
private
: 52.9% ✅Tests 📝 | Passed ✅ | Failed ❌ | Skipped ⏭️ | Pending ⏳ | Other ❓ | Flaky 🍂 | Duration ⏱️ |
---|---|---|---|---|---|---|---|
48 | 48 | 0 | 0 | 0 | 0 | 0 | 12.0s |
public
: 58.0% ✅Tests 📝 | Passed ✅ | Failed ❌ | Skipped ⏭️ | Pending ⏳ | Other ❓ | Flaky 🍂 | Duration ⏱️ |
---|---|---|---|---|---|---|---|
100 | 100 | 0 | 0 | 0 | 0 | 0 | 19.1s |
Description
This PR adds a graceful shutdown to the backend server. To achieve this, the server process is put into its own thread, with the main thread waiting for SIGINT or SIGTERM. When one of these signals is received, the server is given a configurable amount of time to finish handling existing connections. Once the shutdown procedure starts, new connections will be refused.
Fixes #86
Type of change
Please select the option that best describes the changes made:
Changes