http: use an unref'd timer to fix delay in exit
authorPeter Rust <peter@cornerstonenw.com>
Mon, 1 Jul 2013 22:46:49 +0000 (15:46 -0700)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Mon, 1 Jul 2013 23:02:25 +0000 (16:02 -0700)
commit16b59cbc74c8fe2f8b30f3af4c2f885b7bfb6030
tree4eeb260b297d2d04cf16b080638f9996874b090b
parentdc3c2d12c850e88de3fe352e5ac9bbea911a66d7
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.
lib/http.js
test/simple/test-http-exit-delay.js [new file with mode: 0644]