isite 2025.1.15 → 2025.1.16
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/lib/routing.js +12 -5
- package/package.json +1 -1
package/lib/routing.js
CHANGED
|
@@ -1475,12 +1475,14 @@ module.exports = function init(____0) {
|
|
|
1475
1475
|
server.maxHeadersCount = 0;
|
|
1476
1476
|
server.timeout = 1000 * ____0.options.responseTimeout;
|
|
1477
1477
|
server.on('error', (e) => {
|
|
1478
|
+
____0.serverCount++;
|
|
1478
1479
|
if (e.code === 'EADDRINUSE') {
|
|
1479
1480
|
____0.log('Address in use, Closing Server : ' + p);
|
|
1480
1481
|
server.close();
|
|
1481
1482
|
}
|
|
1482
1483
|
});
|
|
1483
1484
|
server.listen(p, function () {
|
|
1485
|
+
____0.serverCount++;
|
|
1484
1486
|
if (!____0.server) {
|
|
1485
1487
|
____0.server = server;
|
|
1486
1488
|
}
|
|
@@ -1488,11 +1490,6 @@ module.exports = function init(____0) {
|
|
|
1488
1490
|
____0.log('\n-----------------------------------------');
|
|
1489
1491
|
____0.log(` ( ${____0.options.name} ) Running on : http://${____0.options.hostname}:${p} `);
|
|
1490
1492
|
____0.log('-----------------------------------------\n');
|
|
1491
|
-
|
|
1492
|
-
if (callback) {
|
|
1493
|
-
callback(____0.servers);
|
|
1494
|
-
}
|
|
1495
|
-
____0.call(____0.strings[9]);
|
|
1496
1493
|
});
|
|
1497
1494
|
}
|
|
1498
1495
|
} catch (error) {
|
|
@@ -1529,6 +1526,16 @@ module.exports = function init(____0) {
|
|
|
1529
1526
|
}
|
|
1530
1527
|
}
|
|
1531
1528
|
|
|
1529
|
+
____0.readyInterval = setInterval(() => {
|
|
1530
|
+
if (____0.serverCount == ports.length) {
|
|
1531
|
+
clearInterval(____0.readyInterval);
|
|
1532
|
+
if (callback) {
|
|
1533
|
+
callback(____0.servers);
|
|
1534
|
+
}
|
|
1535
|
+
____0.call(____0.strings[9]);
|
|
1536
|
+
}
|
|
1537
|
+
}, 100);
|
|
1538
|
+
|
|
1532
1539
|
return ____0.server;
|
|
1533
1540
|
};
|
|
1534
1541
|
|