From 5f2d7c8dcf098421a0691dd2b03b53c7f2f4eb61 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 26 Mar 2020 15:53:00 -0400 Subject: [PATCH] increase worker rpc wait time before timeout --- lib/hk-util.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/hk-util.js b/lib/hk-util.js index ad03c8100..455fdaa22 100644 --- a/lib/hk-util.js +++ b/lib/hk-util.js @@ -839,7 +839,7 @@ HK.initializeIndexWorkers = function (Env, config, _cb) { } const txid = Util.uid(); msg.txid = txid; - response.expect(txid, cb, 45000); + response.expect(txid, cb, 60000); workers[workerIndex].send(msg); }; @@ -997,8 +997,8 @@ HK.initializeValidationWorkers = function (Env) { var txid = msg.txid = Util.uid(); - // expect a response within 15s - response.expect(txid, cb, 15000); + // expect a response within 45s + response.expect(txid, cb, 60000); // Send the request workers[nextWorker].send(msg);