From bbe4f0d20b70417950381aea112993c4cc8c1168 Mon Sep 17 00:00:00 2001 From: Tomas Vesely Date: Wed, 5 Dec 2018 23:26:25 +0100 Subject: [PATCH] Release Fibers that are not added back to the pool. This commit fixes issue https://github.com/meteor/meteor/issues/10359. Fibers that are created and not returned to the pool are not released. They will accumulate over time and the node process will get stuck and must be restarted. This change simple resets handle to a fiber when we are done with it... which releases it properly. --- fiber_pool.js | 1 + 1 file changed, 1 insertion(+) diff --git a/fiber_pool.js b/fiber_pool.js index b066347..f468491 100644 --- a/fiber_pool.js +++ b/fiber_pool.js @@ -62,6 +62,7 @@ function FiberPool(targetFiberCount) { break; } } + fiber = null; }); // Run the new Fiber up to the first yield point, so that it will be