mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-12 12:06:29 +00:00
feat: add KeepAlive method
This commit is contained in:
parent
6a3e89b4af
commit
046df157e4
1 changed files with 1 additions and 0 deletions
|
|
@ -250,6 +250,7 @@ namespace PepperDash.Core
|
|||
ConnectionInfo connectionInfo = new ConnectionInfo(Hostname, Port, Username, pauth, kauth);
|
||||
Client = new SshClient(connectionInfo);
|
||||
Client.ErrorOccurred += Client_ErrorOccurred;
|
||||
Client.KeepAliveInterval = TimeSpan.FromMilliseconds(30000);
|
||||
|
||||
//Attempt to connect
|
||||
ClientStatus = SocketStatus.SOCKET_STATUS_WAITING;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue