Node.js · Senior · Question 18 of 75

Why might server.close() not finish during graceful shutdown?

Explanation

Typical shutdown: mark not ready, stop accepting connections, let in-flight requests finish, close idle connections, then close pools and exit, with a deadline.

Further reading

Problem with a question

Node.js · Senior · question 18

Test yourself

Take the Node.js · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz