mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
chore:
This commit is contained in:
@@ -88,7 +88,7 @@ export class SshAccess extends BaseAccess {
|
|||||||
|
|
||||||
@AccessInput({
|
@AccessInput({
|
||||||
title: "超时时间",
|
title: "超时时间",
|
||||||
helper: "执行命令的超时时间,单位秒,默认10分钟",
|
helper: "执行命令的超时时间,单位秒,默认30分钟",
|
||||||
component: {
|
component: {
|
||||||
name: "a-input-number",
|
name: "a-input-number",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -593,7 +593,7 @@ export class SshClient {
|
|||||||
timeoutId = setTimeout(() => {
|
timeoutId = setTimeout(() => {
|
||||||
this.logger.info("执行超时,断开连接");
|
this.logger.info("执行超时,断开连接");
|
||||||
conn.end();
|
conn.end();
|
||||||
}, 1000 * (connectConf.timeout || 600));
|
}, 1000 * (connectConf.timeout || 1800));
|
||||||
return await callable(conn);
|
return await callable(conn);
|
||||||
} finally {
|
} finally {
|
||||||
clearTimeout(timeoutId);
|
clearTimeout(timeoutId);
|
||||||
|
|||||||
Reference in New Issue
Block a user