http: use an unref'd timer to fix delay in exit · nodejs/node@16b59cb · GitHub
Skip to content

Commit 16b59cb

Browse files
prusttjfontaine
authored andcommitted
http: use an unref'd timer to fix delay in exit
There was previously up to a second exit delay when exiting node right after an http request/response, due to the utcDate() function doing a setTimeout to update the cached date/time. Fixing this should increase the performance of our http tests.
1 parent dc3c2d1 commit 16b59cb

2 files changed

Lines changed: 66 additions & 3 deletions

File tree

lib/http.js

Lines changed: 6 additions & 3 deletions
Lines changed: 60 additions & 0 deletions

0 commit comments

Comments
 (0)