Skip to content

Commit

Permalink
Merge pull request #62 from hesiod-project/dev
Browse files Browse the repository at this point in the history
v1.0.38
  • Loading branch information
neuroscr committed Feb 20, 2024
2 parents 0ff883b + 9e841c2 commit 345e2e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ function shutdown_blockchain() {
}

function shutdown_storage() {
if (storageServer && storageServer.killed) {
if (lib.isPidRunning(storageServer.pid)) {
console.log('LAUNCHER: killing SS again')
process.kill(storageServer.pid, 'SIGKILL')
}
}
if (storageServer && !storageServer.killed) {
// FIXME: was killed not set?
try {
Expand Down Expand Up @@ -530,6 +536,7 @@ function launcherStorageServer(config, args, cb) {
if (data === undefined) {
console.log('STORAGE: RPC server not responding, restarting storage server')
shutdown_storage()
// what restarts this? something does
}
})
}
Expand Down
4 changes: 3 additions & 1 deletion lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,9 @@ async function runStorageRPCTest(lokinet, config, cb) {
var responded = false
var ref = {
abort: function () {
console.log('runStorageRPCTest abort: never called httpGet?')
// usually get this why oxend is syncing...
// sometimes httpGet wasn't called
console.log('runStorageRPCTest abort or timeout, is oxend syncing?')
}
}
var storage_rpc_timer = setTimeout(function() {
Expand Down

0 comments on commit 345e2e0

Please sign in to comment.