Explorar o código

Add timeout again

otherwise you'll get a little bit of spam when workers die instantly
jomo %!s(int64=10) %!d(string=hai) anos
pai
achega
25abbb4f02
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bin/www.js

+ 1 - 1
bin/www.js

@@ -12,7 +12,7 @@ if (cluster.isMaster) {
 
   cluster.on("exit", function (worker, code, signal) {
     logging.error("Worker died. Rebooting a new one.");
-    cluster.fork();
+    setTimeout(cluster.fork, 100);
   });
 
   setInterval(cleaner.run, config.cleaning_interval * 1000);