@rogatio/cli 1.8.0 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node/index.js +3 -2
- package/package.json +1 -1
package/dist/node/index.js
CHANGED
|
@@ -3283,7 +3283,7 @@ function createServer(handler, options = {}) {
|
|
|
3283
3283
|
);
|
|
3284
3284
|
}
|
|
3285
3285
|
}
|
|
3286
|
-
const maxRetries =
|
|
3286
|
+
const maxRetries = 8;
|
|
3287
3287
|
let lastError = null;
|
|
3288
3288
|
for (let attempt = 0; attempt < maxRetries; attempt++) {
|
|
3289
3289
|
const candidatePort = randomInt(1024, 65535);
|
|
@@ -3294,7 +3294,8 @@ function createServer(handler, options = {}) {
|
|
|
3294
3294
|
return;
|
|
3295
3295
|
} catch (e) {
|
|
3296
3296
|
lastError = e;
|
|
3297
|
-
|
|
3297
|
+
const code = e.code;
|
|
3298
|
+
if (code !== "EADDRINUSE" && code !== "EACCES") {
|
|
3298
3299
|
throw new HttpServerError(
|
|
3299
3300
|
"listen-failed",
|
|
3300
3301
|
`Failed to start server: ${e}`,
|
package/package.json
CHANGED