mirror of
https://github.com/tale/headplane.git
synced 2026-07-26 07:48:14 +00:00
feat: make api calls more resilient and stuff
This commit is contained in:
@@ -208,6 +208,7 @@ export function startHttpServer(opts: StartOptions): Server {
|
||||
}
|
||||
process.exit(0);
|
||||
});
|
||||
|
||||
// Force exit if connections don't drain in time.
|
||||
setTimeout(() => process.exit(0), 5_000).unref();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user