querysub 0.77.0 → 0.78.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "querysub",
3
- "version": "0.77.0",
3
+ "version": "0.78.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -200,7 +200,12 @@ async function checkEdgeDomainsAlive() {
200
200
  ips = ips.filter(ip => ip !== "127.0.0.1");
201
201
 
202
202
  let results = await Promise.all(ips.map(async ip => {
203
- return await testTCPIsListening(ip, publicPort);
203
+ // It must be not listening for 3 times in a row
204
+ for (let i = 0; i < 3; i++) {
205
+ let isListening = await testTCPIsListening(ip, publicPort);
206
+ if (isListening) return true;
207
+ }
208
+ return false;
204
209
  }));
205
210
 
206
211
  let deadIPs = ips.filter((ip, i) => !results[i]);