Send SSH_MSG_IGNORE message when implementing keep alive instead of fake global request

This commit is contained in:
olegkap_cp
2010-12-22 22:37:32 +00:00
parent 1e539de36a
commit 2303affe79
2 changed files with 11 additions and 1 deletions
@@ -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();
+1 -1
View File
@@ -587,7 +587,7 @@ namespace Renci.SshClient
/// </summary>
internal void SendKeepAlive()
{
this.SendMessage(new GlobalRequestMessage(GlobalRequestNames.KeepAlive, false));
this.SendMessage(new IgnoreMessage());
}
/// <summary>