Skip to content

Commit 04444a7

Browse files
committed
fix: use a more reasonable unanswered threshhold
1 parent 430f80b commit 04444a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/connection/ssh/const.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
const SECOND = 1000;
55
const MINUTE = 60 * SECOND;
6-
const HOUR = 60 * MINUTE;
76
export const KEEPALIVE_INTERVAL = 60 * SECOND; //How often (in milliseconds) to send SSH-level keepalive packets to the server. Set to 0 to disable.
8-
export const KEEPALIVE_UNANSWERED_THRESHOLD = 12 * HOUR; //How many consecutive, unanswered SSH-level keepalive packets that can be sent to the server before disconnection.
7+
export const KEEPALIVE_UNANSWERED_THRESHOLD =
8+
(15 * MINUTE) / KEEPALIVE_INTERVAL; //How many consecutive, unanswered SSH-level keepalive packets that can be sent to the server before disconnection.
99
export const WORK_DIR_START_TAG = "<WorkDirectory>";
1010
export const WORK_DIR_END_TAG = "</WorkDirectory>";
1111
export const CONNECT_READY_TIMEOUT = 5 * MINUTE; //allow extra time due to possible prompting

0 commit comments

Comments
 (0)