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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content