Skip to content

Commit

Permalink
fix: timeout during checkIfAddrIsDaemon (#1750)
Browse files Browse the repository at this point in the history
This should mitigate problem described in
#1723 (comment)
and help with the first point of #1749
  • Loading branch information
lidel committed Feb 11, 2021
1 parent 2754f25 commit 0ff806a
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 0ff806a

Please sign in to comment.