mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
node: clear nextTickQueue when using domains
When the domain specific code was reintroduced in 828f145 the
conditional to check and clear the nextTickQueue if many items had run
was not introduced. This allows for the application to run out of memory
if domains are being used in an infinite recursive loop.
This commit is contained in:
1 parent
103b89673e
commit
56ebf308dc
1 file changed
+2
@@ -698,6 +698,8 @@
|
||||
}
|
||||
if (hasQueue)
|
||||
_unloadAsyncQueue(tock);
|
||||
if (1e4 < tickInfo[kIndex])
|
||||
tickDone();
|
||||
if (domain)
|
||||
domain.exit();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user