timers: internal unref'd timer for api timeouts
authorTimothy J Fontaine <tjfontaine@gmail.com>
Fri, 17 May 2013 22:04:24 +0000 (15:04 -0700)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Tue, 21 May 2013 23:40:30 +0000 (16:40 -0700)
commitf46ad012bc5a40194242ea1e9669c9cc25bd7047
tree08a289e3ff99e898e9e968f6920c58ad06ba8a51
parent2cad7a69ce3228b1e40f3bf8117ca739a5d6929d
timers: internal unref'd timer for api timeouts

When an internal api needs a timeout, they should use
timers._unrefActive since that won't hold the loop open. This solves
the problem where you might have unref'd the socket handle but the
timeout for the socket was still active.
lib/timers.js