mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-12 11:14:54 +00:00
feat: add KeepAlive method
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user