We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent def85da commit 6fff9ffCopy full SHA for 6fff9ff
lib/internal/inspector/_inspect.js
@@ -234,13 +234,13 @@ class NodeInspector {
234
this.stdout.write(' ok\n');
235
}, (error) => {
236
debuglog('connect failed', error);
237
- // If it's failed to connect 10 times then print failed message
238
- if (connectionAttempts >= 10) {
+ // If it's failed to connect 5 times then print failed message
+ if (connectionAttempts >= 5) {
239
this.stdout.write(' failed to connect, please retry\n');
240
process.exit(1);
241
}
242
243
- return new Promise((resolve) => setTimeout(resolve, 500))
+ return new Promise((resolve) => setTimeout(resolve, 1000))
244
.then(attemptConnect);
245
});
246
};
0 commit comments