Skip to content

Commit 0ff806a

Browse files
authored
fix: timeout during checkIfAddrIsDaemon (#1750)
This should mitigate problem described in #1723 (comment) and help with the first point of #1749
1 parent 2754f25 commit 0ff806a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/daemon/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ const parseCfgMultiaddr = (addr) => (addr.includes('/http')
155155

156156
async function checkIfAddrIsDaemon (addr) {
157157
const options = {
158+
timeout: 3000, // 3s is plenty for localhost request
158159
method: 'POST',
159160
host: addr.address,
160161
port: addr.port,

0 commit comments

Comments
 (0)