What is the reason why the timeout setting of node's request module does not work?

clipboard.png

clipboard.png
print and see that it has been 5 seconds since the whole request. I don"t know why


wait for a server to send response headers (and start the response body) before aborting the request.

5 seconds is response completed in 5 seconds or response started in 5 seconds ?
timeout just whether or not it timed out before receiving body . From the moment you start receiving body , it doesn't matter whether timeout .

Menu