79488186

Date: 2025-03-06 03:31:57
Score: 0.5
Natty:
Report link

The Express documentation now has a page specifically explaining how to handle this correctly for that framework.

const server = app.listen(port)

process.on('SIGTERM', () => {
  debug('SIGTERM signal received: closing HTTP server')
  server.close(() => {
    debug('HTTP server closed')
  })
})

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andrew Dinmore