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