Hi,
I'm using the code Lukas supplied in reply to a previous question of mine:
http://forum.rebex.net/questions/342/ssh-runcommand-vs-startcommand-for-stdout-stderr-and-exit-code/347#347
I'm using it to run an Expect script and it works great most of the time.
Sometimes though we get the error below when it tries to close the underlying channel. The Expect script I'm running seems to have completed fine but we still get the error on close.
The operation was not completed within the specified time limit.
at Rebex.Net.SshSession.BXQTfX(Int32 )
at Rebex.Net.SshSession.AePCoRZ(Byte[]& )
at Rebex.Net.SshSession.cDtmAOZ(Int64& , Boolean )
at Rebex.Net.SshChannel.cDtmAOZ(Boolean , Int64& )
at Rebex.Net.SshChannel.Close()
There can be multiple independent Rebex.Ssh sessions open at once all running different Expect scripts so I'm wondering if perhaps they are blocking causing random ones to timeout when trying to close, especially as re-running a failed one again usually completes and closes without error.
I've set _ssh.Timeout
to be higher than the time the Expect script takes when run manually but the error still randomly happens.
I'm adding LogWriter to create a communication log but wondered if there was any known issues or suggestions to look at in the meantime.
Thanks