Browse Source

increase worker rpc wait time before timeout

master
ansuz 9 months ago
parent
commit
5f2d7c8dcf
1 changed files with 3 additions and 3 deletions
  1. 6
      lib/hk-util.js

6
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);

Loading…
Cancel
Save