Re: Inconsistent connection failures - WeOnlyDo Discussion board

Re: Inconsistent connection failures (General questions)

by wodAlan, Thursday, May 11, 2006, 00:32 (6771 days ago) @ ddeloveh

David,

1) Why does it now work when I only set the prompt property to the
regex your provided without changing my WaitFor( > ) and Execute(..,
> ) call?
2) Should I have changed both?

You should set regular expression (almost always), but of course you can specify something what satisfy your needs. Also read my answer under question 3.
If you have more than one command to execute on the remote server, you
will find this feature handy.
If Prompt property is set, the command prompt string you entered will
not be provided through the Received event - which means you don't
have to 'cut it out' of the command output and if you set only, under
the Prompt Property ( > ), then you cannot wait same thing. And I
suggest you to use only WaitFor Method in this case.

3) So what is the root cause? Is it a nuance with F-Secure?
wodSFTP.NET? the space time continuum?

No, there is no root cause. You were wait > , but because of speed of connection sometimes sign > come into and Prompt Property catch it and remove it from buffer and then WaitFor Method will wait something what will never come.

4) Would this have acted differently if I had set a specific TerminalType?
The terminal type does not really have any affect on the local side.

5) Is there a secret decoder document of recommendations for how to
configure the component by server type and version?

Unfortunately not. But we are testing wodSSH.NET with lots the most
common servers so I presume that you will have no problem with any,
but of course you can always find one, and in this case we will try
to find solution. :)

6) In my environment we have a number of different server types that
the component must be configured for and the end user often struggles
with the specific properties to setup within our app which we map to
your component. Is it usually safer to let the component auto config
most values?

For example, if you set Protocol Property to Auto it should always
work. But on other side best way is to test with server and specific
properties manually for your needs.

Regards,
Alan


Complete thread: