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
..
2013-01-11 22:24:48 +01:00
2014-06-06 15:07:29 -07:00
2014-06-06 15:07:29 -07:00
2013-11-12 11:23:19 -08:00
2013-03-13 11:26:36 -07:00
2011-08-06 03:12:06 -07:00
2012-05-15 21:00:27 +02:00
2013-05-23 16:32:04 -07:00
2014-02-08 15:31:27 -08:00
2014-07-02 12:49:59 -07:00
2012-03-10 00:14:14 +01:00
2013-02-25 23:45:02 +01:00
2012-11-21 01:21:53 +01:00
2012-02-21 14:07:25 +01:00
2014-06-06 15:07:29 -07:00
2014-05-16 01:33:08 +04:00
2014-06-06 15:07:29 -07:00
2012-03-10 00:14:14 +01:00
2012-05-08 16:02:14 +02:00
2013-01-08 05:08:00 +01:00
2014-06-06 15:07:29 -07:00
2012-03-10 00:14:14 +01:00
2014-02-08 15:31:27 -08:00
2012-03-10 00:22:42 +01:00
2013-03-08 14:42:15 -08:00
2012-03-10 00:14:14 +01:00
2012-03-10 00:14:14 +01:00
2012-03-10 00:14:14 +01:00
2013-04-10 15:37:30 +02:00
2014-01-12 10:04:21 -08:00
2012-03-10 00:14:14 +01:00
2013-04-03 09:52:56 -07:00
2014-02-04 01:42:52 +04:00
2013-02-25 23:45:02 +01:00
2012-03-10 00:14:14 +01:00
2014-06-06 15:07:29 -07:00
2012-08-20 17:29:58 +02:00
2011-03-14 17:37:05 -07:00
2012-03-10 00:14:14 +01:00
2012-11-01 01:25:22 +01:00
2014-07-31 11:12:08 -07:00
2013-04-03 09:52:56 -07:00
2012-11-01 14:06:26 +01:00
2013-04-03 09:52:56 -07:00
2013-01-03 23:31:26 +01:00
2012-11-21 01:21:53 +01:00
2014-02-18 01:11:05 +04:00
2014-06-06 15:07:29 -07:00
2012-02-03 14:07:32 +00:00
2014-03-05 15:26:09 +04:00
2014-03-03 16:27:58 -08:00
2012-11-21 01:21:53 +01:00
2013-09-28 10:35:57 +02:00
2012-03-10 00:14:14 +01:00
2014-06-06 15:07:29 -07:00
2012-05-15 21:00:27 +02:00
2013-02-25 23:45:02 +01:00
2013-02-25 23:45:02 +01:00
2012-03-30 21:24:02 +02:00
2013-11-27 03:53:45 +01:00
2013-05-14 13:51:42 -07:00
2014-06-06 15:07:29 -07:00
2014-06-06 15:07:29 -07:00
2013-03-14 15:55:30 +01:00
2012-06-01 20:52:13 +04:00
2014-08-04 12:00:40 -07:00
2012-08-07 01:57:50 +02:00
2013-03-14 15:55:26 +01:00
2012-06-01 20:52:13 +04:00
2014-06-06 15:07:29 -07:00
2013-02-13 16:11:20 +01:00
2014-06-27 14:22:01 +04:00
2013-01-11 18:35:03 +01:00
2013-02-25 23:45:02 +01:00
2012-12-17 17:37:51 +01:00
2013-10-09 08:49:39 -07:00
2013-10-09 08:49:39 -07:00