You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Small question here! I know that http-terminator tracks some state about the server, e.g. active sockets, in order to do its job. Does that imply that the terminator needs to be created before the server starts serving requests, so that it can track the state of the server prior to termination? I think it could be easy to assume you can just create the terminator at the moment you want to start tearing down the server, so I want to confirm whether or not that is intended usage. Thank you!
Example:
constserver=http.createServer();// Serve some requests// Begin teardownconsthttpTerminator=createHttpTerminator({ server });awaithttpTerminator.terminate();// ... or ...constserver=http.createServer();consthttpTerminator=createHttpTerminator({ server });// Serve some requests// Begin teardownawaithttpTerminator.terminate();
The text was updated successfully, but these errors were encountered:
Small question here! I know that http-terminator tracks some state about the server, e.g. active sockets, in order to do its job. Does that imply that the terminator needs to be created before the server starts serving requests, so that it can track the state of the server prior to termination? I think it could be easy to assume you can just create the terminator at the moment you want to start tearing down the server, so I want to confirm whether or not that is intended usage. Thank you!
Example:
The text was updated successfully, but these errors were encountered: