How does Node.js handle SIGTERM in regards to HTTP connections?

Solution Verified - Updated -

Issue

  • Does Node.js gracefully shutdown when it receives a SIGTERM?
  • Are HTTP connections kept open until requests complete when a SIGTERM is received?

Environment

  • Red Hat Software Collections
  • Node.js

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.