mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 01:05:42 +00:00
Send SSH_MSG_IGNORE message when implementing keep alive instead of fake global request
This commit is contained in:
@@ -10,6 +10,16 @@ namespace Renci.SshClient.Messages.Transport
|
||||
get { return MessageTypes.Ignore; }
|
||||
}
|
||||
|
||||
public IgnoreMessage()
|
||||
{
|
||||
this.Data = string.Empty;
|
||||
}
|
||||
|
||||
public IgnoreMessage(string data)
|
||||
{
|
||||
this.Data = data;
|
||||
}
|
||||
|
||||
protected override void LoadData()
|
||||
{
|
||||
this.Data = this.ReadString();
|
||||
|
||||
@@ -587,7 +587,7 @@ namespace Renci.SshClient
|
||||
/// </summary>
|
||||
internal void SendKeepAlive()
|
||||
{
|
||||
this.SendMessage(new GlobalRequestMessage(GlobalRequestNames.KeepAlive, false));
|
||||
this.SendMessage(new IgnoreMessage());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user