[GH-ISSUE #2939] 会话保持时长太短 #1932

Closed
opened 2026-02-27 00:05:22 +03:00 by kerem · 3 comments
Owner

Originally created by @owelinux on GitHub (Aug 25, 2023).
Original GitHub issue: https://github.com/electerm/electerm/issues/2939

What feature you'd like to see or proposal(期望什么新功能/特性或者建议)

目前最大值是20000ms,是否可以自定义或者增加上限

Originally created by @owelinux on GitHub (Aug 25, 2023). Original GitHub issue: https://github.com/electerm/electerm/issues/2939 ### What feature you'd like to see or proposal(期望什么新功能/特性或者建议) 目前最大值是20000ms,是否可以自定义或者增加上限
kerem closed this issue 2026-02-27 00:05:23 +03:00
Author
Owner

@zxdong262 commented on GitHub (Aug 25, 2023):

那个不是最大时长的意思,而是发送保活信号的间隔,越短可能更有利于保活,可以试试

<!-- gh-comment-id:1693287278 --> @zxdong262 commented on GitHub (Aug 25, 2023): 那个不是最大时长的意思,而是发送保活信号的间隔,越短可能更有利于保活,可以试试
Author
Owner

@zxdong262 commented on GitHub (Sep 19, 2023):

可以试试这个:

Creating ~/.ssh/config with this contents kept connection alive.

Host *
ServerAliveInterval 30
ServerAliveCountMax 2
<!-- gh-comment-id:1724654623 --> @zxdong262 commented on GitHub (Sep 19, 2023): 可以试试这个: ``` Creating ~/.ssh/config with this contents kept connection alive. Host * ServerAliveInterval 30 ServerAliveCountMax 2 ```
Author
Owner

@zxdong262 commented on GitHub (Sep 21, 2023):

https://github.com/electerm/electerm/issues/2998 新版支持设置keepalive间隔为0,似乎可以解决问题

<!-- gh-comment-id:1729346579 --> @zxdong262 commented on GitHub (Sep 21, 2023): https://github.com/electerm/electerm/issues/2998 新版支持设置keepalive间隔为0,似乎可以解决问题
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#1932
No description provided.