Ben Noordhuis
d8c178bc16
timers: fix performance regression
Fix a 5-7% performance regression in the http_simple benchmark that was
introduced by the following commits:
348d8cd
timers: remove _idleTimeout from item in .unenroll()
f2f3028
timers: fix memory leak in setTimeout
098fef6
timers: remember extra setTimeout() arguments when timeout==0
Fix suggested by Bert Belder.
13 years ago
James Hartig
348d8cd04a
timers: remove _idleTimeout from item in .unenroll()
Stops .active() from reactivating the timer.
Fixes #2114 .
13 years ago
Yoshihiro Kikuchi
f2f30286bf
timers: fix memory leak in setTimeout
Closing handle is leaked when setTimeout called with arguments which are
1. a callback
2. zero delay
(i.e. setTimeout(function(){}, 0); )
13 years ago
Ben Noordhuis
098fef6740
timers: remember extra setTimeout() arguments when timeout==0
Fixes #2079 .
13 years ago
Ryan Dahl
be0bb2dc13
Remove net_legacy timers_legacy
13 years ago
Bert Belder
1037f5c113
Fix bug in timers_uv timeout recomputation
Closes #1209
14 years ago
Henry Rawas
56ec4e4f3c
net_uv: fix test-net-connect-timeout.js test
14 years ago
Ryan Dahl
d005cc5cc9
Enable new timer binding only on --use-uv
14 years ago
Bert Belder
d9aa9b54cf
Use timer_wrap instead of the old timer binding
14 years ago
Ryan Dahl
55048cdf79
Update copyright headers
14 years ago
Ryan Dahl
1a7830a92a
Fix debug flag in timers.js
14 years ago
Ryan Dahl
bfb6a67d60
Another fix for process.assert
14 years ago
Ryan Dahl
2ec4cd5525
factor linklist code into own file
14 years ago
Ryan Dahl
29f48d48e5
A few more list clean ups
14 years ago
Ryan Dahl
09994438e5
Expose link-list from timers.js; add tests
14 years ago
Ryan Dahl
86160a8807
NODE_DEBUG=timer instead of bitflags
14 years ago
Ryan Dahl
82e9da9fb7
Allow one extra ms in timer diff
Fixes sporadic test-next-tick-ordering.js failures
14 years ago
Ryan Dahl
dd53ceebe4
lint
14 years ago
Michael W
5f3464cf4e
fixed timers, whoops.
Fixes issue https://github.com/ry/node/issues/issue/481
14 years ago
Michael W
645c3b3713
Fixed: clearTimeouts calling multiple times
When clearTimeouts was called on a timer multiple times, it would break the
doubly-linked list along with future timeouts. This patch fixes that.
14 years ago
Ryan Dahl
7a48fd8455
Handle null values in clearTimeout
14 years ago
Ryan Dahl
bc47353bbe
Use the timer list for setTimeout
14 years ago
Ryan Dahl
79944006e2
Move setTimeout and friends into timers module
14 years ago
Ryan Dahl
5cc29b80f2
Move idle timers into its own module
14 years ago