How to shut down the server #68

Closed
opened 2020-10-19 20:00:47 +00:00 by Ghost · 2 comments

When my application receives a SIGTERM or SIGINT signal (through a listener registered with process.on()), I want to shut down the HTTP server earlier than the rest of the app, so that no new requests are accepted while my application finishes processing data uploaded by previous requests. How do I shut down the Greenlock Express server?

When my application receives a SIGTERM or SIGINT signal (through a listener registered with `process.on()`), I want to shut down the HTTP server earlier than the rest of the app, so that no new requests are accepted while my application finishes processing data uploaded by previous requests. How do I shut down the Greenlock Express server?
Owner
See these examples for how to get access to the node server objects: - https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/examples/http/server.js - https://git.rootprojects.org/root/greenlock-express.js/src/branch/master/examples/https/server.js
Author

Oh nice, thanks!

Oh nice, thanks!
Ghost closed this issue 2020-10-19 20:39:51 +00:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: root/greenlock-express.js#68
No description provided.