Node.js · Senior · Question 20 of 75
What does server.requestTimeout protect against?
- 1Slow database queries
- ✓Correct answer: Slow clients that send a request very slowly to hold connections open (Slowloris-style attacks)
- 3Handlers that take too long to compute a response
Explanation
It limits how long the server waits to receive the whole request. headersTimeout does the same for headers. Handler time needs your own timeouts.