From 0ff806aa1185a423fa166618346045b9acb4d095 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Thu, 11 Feb 2021 03:13:00 +0100 Subject: [PATCH] fix: timeout during checkIfAddrIsDaemon (#1750) This should mitigate problem described in https://github.com/ipfs-shipyard/ipfs-desktop/issues/1723#issuecomment-766165256 and help with the first point of #1749 --- src/daemon/config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/daemon/config.js b/src/daemon/config.js index f82d9fc4c..dd8703dea 100644 --- a/src/daemon/config.js +++ b/src/daemon/config.js @@ -155,6 +155,7 @@ const parseCfgMultiaddr = (addr) => (addr.includes('/http') async function checkIfAddrIsDaemon (addr) { const options = { + timeout: 3000, // 3s is plenty for localhost request method: 'POST', host: addr.address, port: addr.port,