cdp-tunnel 2.4.2 → 2.4.3
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/cli/index.js +2 -3
- package/extension-new/manifest.json +1 -1
- package/package.json +1 -1
package/cli/index.js
CHANGED
|
@@ -204,11 +204,10 @@ function startServer(port, watchdog, autoRestart) {
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
console.log('');
|
|
207
|
-
log('yellow', '⚠ 服务器异常退出 (' + reason + '),
|
|
207
|
+
log('yellow', '⚠ 服务器异常退出 (' + reason + '),5 秒后自动重启...');
|
|
208
208
|
console.log(' 重启次数: ' + restartTimestamps.length + '/' + MAX_RESTARTS + ' (60秒内)');
|
|
209
209
|
console.log('');
|
|
210
210
|
|
|
211
|
-
// Kill any leftover process occupying the port before restarting
|
|
212
211
|
try {
|
|
213
212
|
const result = execSync(`lsof -ti:${port} 2>/dev/null || true`).toString().trim();
|
|
214
213
|
if (result) {
|
|
@@ -220,7 +219,7 @@ function startServer(port, watchdog, autoRestart) {
|
|
|
220
219
|
}
|
|
221
220
|
} catch {}
|
|
222
221
|
|
|
223
|
-
setTimeout(() => startServer(port, true, autoRestart),
|
|
222
|
+
setTimeout(() => startServer(port, true, autoRestart), 5000);
|
|
224
223
|
});
|
|
225
224
|
|
|
226
225
|
process.on('SIGINT', () => {
|
package/package.json
CHANGED