Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit c2ab7c2

Browse files
authored
portIsFree timeout increased
In windows, assigning a port may take a little longer than previously assumed value of 2000ms. I am using Windows 10 1903 64bit, and it takes about 3000ms to initialize a port. I increased the timeout to some higher value (9999ms) to give a little more space to Windows to initialize a port to use with the app. This patch probably solves issues #48, #54 and #70
1 parent af55a32 commit c2ab7c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/_inspect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class StartupError extends Error {
4949
}
5050
}
5151

52-
function portIsFree(host, port, timeout = 2000) {
52+
function portIsFree(host, port, timeout = 9999) {
5353
if (port === 0) return Promise.resolve(); // Binding to a random port.
5454

5555
const retryDelay = 150;

0 commit comments

Comments
 (0)