Skip to content

Commit

Permalink
inspector: update timeout used to wait for the port to be free
Browse files Browse the repository at this point in the history
  • Loading branch information
joyeecheung committed Aug 22, 2022
1 parent fd07bab commit ceb9960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/debugger/inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const debuglog = util.debuglog('inspect');

const { ERR_DEBUGGER_STARTUP_ERROR } = require('internal/errors').codes;

async function portIsFree(host, port, timeout = 9999) {
async function portIsFree(host, port, timeout = 3000) {
if (port === 0) return; // Binding to a random port.

const retryDelay = 150;
Expand Down

0 comments on commit ceb9960

Please sign in to comment.