Re: Missing wait for response in SSH.net buffer an (General questions)
Hello,
I am experiencing a similar error. I don't know the exact pattern in my case. I tried using DataReady (below code) but I still am not getting the entire response. However if I run the code in debug mode I see that the DataReady piece is being hit and I am getting the entire response back.
while (Ssh1.DataReady > 0)
{
//Get data from buffer.
SaveLogMessage( Attempting to get Additional data from buffer );
response += Ssh1.Receive();
}
Thanks,
Sunny
Simon,
Yes, that's a possibility. That's why I asked that you try with exact prompt patterns in WaitFor.
This could be the issue, since in regex statement you wait for > which if not stripped is left in buffer.
You could also set DataReady property to 0 after each WaitFor, to make sure buffer is cleared.
Can you please try that?
Regards,
Damba
Complete thread:
- Missing wait for response in SSH.net buffer and mi - Simon, 2009-04-23, 14:07
- Re: Missing wait for response in SSH.net buffer an - wodDamir, 2009-04-23, 14:16
- Re: Missing wait for response in SSH.net buffer an - Simon, 2009-04-23, 14:26
- Re: Missing wait for response in SSH.net buffer an - wodDamir, 2009-04-23, 14:36
- Re: Missing wait for response in SSH.net buffer an - Sunny, 2009-04-23, 16:48
- Re: Missing wait for response in SSH.net buffer an - woddrazen, 2009-04-23, 17:11
- Re: Missing wait for response in SSH.net buffer an - Sunny, 2009-04-23, 17:18
- Re: Missing wait for response in SSH.net buffer an - woddrazen, 2009-04-23, 18:48
- Re: Missing wait for response in SSH.net buffer an - Simon, 2009-04-24, 10:40
- Re: Missing wait for response in SSH.net buffer an - woddrazen, 2009-04-23, 18:48
- Re: Missing wait for response in SSH.net buffer an - Sunny, 2009-04-23, 17:18
- Re: Missing wait for response in SSH.net buffer an - woddrazen, 2009-04-23, 17:11
- Re: Missing wait for response in SSH.net buffer an - Sunny, 2009-04-23, 16:48
- Re: Missing wait for response in SSH.net buffer an - wodDamir, 2009-04-23, 14:36
- Re: Missing wait for response in SSH.net buffer an - Simon, 2009-04-23, 14:26
- Re: Missing wait for response in SSH.net buffer an - wodDamir, 2009-04-23, 14:16