Skip to content

Commit

Permalink
fix: timeout during checkIfAddrIsDaemon
Browse files Browse the repository at this point in the history
This should mitigate problem described in
#1723 (comment)
and help with first point of #1749

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
  • Loading branch information
lidel committed Jan 25, 2021
1 parent 3c69d4c commit 5e0864e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/daemon/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5e0864e

Please sign in to comment.