node/test
Julien Gilli 6f043940bd timers: fix timers with non-integer delay hanging.
When backporting f8193ab into v0.10, a regression was introduced. Timers
with non-integer timeout could trigger a infinite recursion with 100%
cpu usage. This commit backports 93b0624 which fixes the regression.

After backporting f8193ab, instead of using Date.now(), timers would use
Timer.now() to determine if they had expired. However, Timer.now() is
based on loop->time, which is not updated when a timer's remaining time
is > 0 and < 1. Timers would thus never timeout if their remaining time
was at some point > 0 and < 1.

With this commit, Timer.now() updates loop->time itself, and timers
always timeout eventually.

Fixes #8065 and #8068.
2014-08-04 12:00:40 -07:00
..
addons test: modify async native test.js to test for #4820 2013-02-21 13:14:07 -08:00
disabled Merge remote-tracking branch 'ry/v0.8' into master 2013-02-18 10:21:08 -08:00
fixtures test: fix test-tls-server-verify 2014-07-23 23:51:14 +04:00
gc test: use the debug build of node-weak when necessary 2012-06-13 17:58:28 -07:00
internet test: move two tests from simple/ to internet/ 2013-07-20 12:36:33 +02:00
message lib: name EventEmitter prototype methods 2014-05-07 12:11:57 -07:00
pummel fs: make unwatchFile() insensitive to path 2014-02-06 13:04:35 +04:00
simple timers: fix timers with non-integer delay hanging. 2014-08-04 12:00:40 -07:00
timers timers: backport f8193ab 2014-07-31 08:53:24 -07:00
common.js timers: backport f8193ab 2014-07-31 08:53:24 -07:00